]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/part.cpp
Adjust event handling to match changes in mspgui
[libs/gltk.git] / source / part.cpp
index f2797f9058ad66fe8633256c286eb3b794fe8cab..0ba03a3d3e1d027e2e50021212db4b1cfabd8862 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/gl/transform.h>
 #include "geometry.h"
 #include "part.h"
@@ -25,7 +18,7 @@ Part::Part(const string &n):
 const Graphic *Part::get_graphic(State state) const
 {
        if(state>N_STATES_)
-               throw InvalidParameterValue("Invalid state");
+               throw invalid_argument("Part::get_graphic");
 
        return graphic[state];
 }