New version 0.2 of the Time Loop layer. It uses the same parameters as the recently...
[synfig.git] / synfig-core / trunk / src / modules / lyr_std / rotate.cpp
index 963e8e5..f757f84 100644 (file)
@@ -1,6 +1,6 @@
 /* === S Y N F I G ========================================================= */
 /*!    \file rotate.cpp
-**     \brief Template Header
+**     \brief Implementation of the "Rotate" layer
 **
 **     $Id$
 **
@@ -51,8 +51,8 @@
 
 SYNFIG_LAYER_INIT(Rotate);
 SYNFIG_LAYER_SET_NAME(Rotate,"rotate");
-SYNFIG_LAYER_SET_LOCAL_NAME(Rotate,_("Rotate"));
-SYNFIG_LAYER_SET_CATEGORY(Rotate,_("Transform"));
+SYNFIG_LAYER_SET_LOCAL_NAME(Rotate,N_("Rotate"));
+SYNFIG_LAYER_SET_CATEGORY(Rotate,N_("Transform"));
 SYNFIG_LAYER_SET_VERSION(Rotate,"0.1");
 SYNFIG_LAYER_SET_CVS_ID(Rotate,"$Id$");
 
@@ -79,7 +79,7 @@ Rotate::set_param(const String & param, const ValueBase &value)
 {
        IMPORT(origin);
 
-       if(param=="amount" && value.same_as(amount))
+       if(param=="amount" && value.same_type_as(amount))
        {
                amount=value.get(amount);
                sin_val=Angle::sin(amount).get();