Allow ValueBase objects to be cast to type Real to get their real value. This is...
[synfig.git] / synfig-core / trunk / src / synfig / value.h
index d97c7c3..5e38508 100644 (file)
@@ -6,7 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-**     Copyright (c) 2007 Chris Moore
+**     Copyright (c) 2007, 2008 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -320,7 +320,7 @@ public:
 
        operator const list_type&()const { return get_list(); }
        //operator const Color&()const { return get(Color()); }
-       //operator const Real&()const { return get(Real()); }
+       operator const Real&()const { return get(Real()); }
        //operator const Time&()const { return get(Time()); }
 
        operator const Vector&()const {  return get(Vector()); }