Rename ValueBase::same_as() to ValueBase::same_type_as(), since it compares types...
[synfig.git] / synfig-core / trunk / src / modules / mod_gradient / lineargradient.cpp
index f8bf419..603e761 100644 (file)
@@ -138,13 +138,13 @@ LinearGradient::hit_check(synfig::Context context, const synfig::Point &point)co
 bool
 LinearGradient::set_param(const String & param, const ValueBase &value)
 {
-       if(param=="p1" && value.same_as(p1))
+       if(param=="p1" && value.same_type_as(p1))
        {
                p1=value.get(p1);
                sync();
                return true;
        }
-       if(param=="p2" && value.same_as(p2))
+       if(param=="p2" && value.same_type_as(p2))
        {
                p2=value.get(p2);
                sync();