]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/text.cpp
Report non-basic variables in Layout::LinearProgram as having zero value
[libs/gltk.git] / source / text.cpp
index c8c6f55ea3d6597ca348b7dbc911672d93d0ed6e..c6fe129fc405ab4c61aa34b3c088a784c9bf3f03 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2009-2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/gl/immediate.h>
 #include <msp/gl/matrix.h>
 #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;
 }