X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftext.cpp;h=c6fe129fc405ab4c61aa34b3c088a784c9bf3f03;hb=c1faa54a3218b53757b8b55de0ff8aa64412253b;hp=c8c6f55ea3d6597ca348b7dbc911672d93d0ed6e;hpb=91997dd3189b93a67179822ec2fed5f2a7bddb74;p=libs%2Fgltk.git diff --git a/source/text.cpp b/source/text.cpp index c8c6f55..c6fe129 100644 --- a/source/text.cpp +++ b/source/text.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #include #include "style.h" @@ -115,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; }