Fix bug introduced in patch applied in svn 2033 making it work properly.
authorgenete <genete@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 12 Sep 2008 23:44:38 +0000 (23:44 +0000)
committergenete <genete@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 12 Sep 2008 23:44:38 +0000 (23:44 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2050 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/widget_curves.cpp

index 4b43405..cef4977 100644 (file)
@@ -290,10 +290,10 @@ struct studio::Widget_Curves::CurveStruct : sigc::trackable
                return -channels[chan].values[time];
        }
 
-       static bool is_supported(const synfigapp::ValueDesc& x)
+       static bool is_not_supported(const synfigapp::ValueDesc& x)
        {
                return x.get_value_type() == ValueBase::TYPE_STRING
-                       && x.get_value_type() == ValueBase::TYPE_CANVAS;
+                       || x.get_value_type() == ValueBase::TYPE_CANVAS;
        }
 };
 
@@ -371,7 +371,7 @@ Widget_Curves::set_value_descs(std::list<synfigapp::ValueDesc> value_descs)
        std::list<synfigapp::ValueDesc>::iterator iter;
        for(iter=value_descs.begin();iter!=value_descs.end();++iter)
        {
-               if (! CurveStruct::is_supported(*iter))
+               if (CurveStruct::is_not_supported(*iter))
                        continue;
 
                try {