X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftext.cpp;h=c6fe129fc405ab4c61aa34b3c088a784c9bf3f03;hb=c1faa54a3218b53757b8b55de0ff8aa64412253b;hp=b0d57f7c80afdc5baae8ba0be0144a05f9144a2e;hpb=8352d5f2590cfcb09e92854be211399105408c4d;p=libs%2Fgltk.git diff --git a/source/text.cpp b/source/text.cpp index b0d57f7..c6fe129 100644 --- a/source/text.cpp +++ b/source/text.cpp @@ -108,7 +108,7 @@ void Text::insert(unsigned pos, const string &s) unsigned Text::get_line_length(unsigned i) const { if(i>=lines.size()) - throw InvalidParameterValue("Invalid line number"); + throw out_of_range("Text::get_line_length"); return lines[i].length; }