#2574520: Complete the fix in r2033.
authorgballintijn <gballintijn@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 13 Feb 2009 16:45:12 +0000 (16:45 +0000)
committerCarlos Lopez <carlos@pcnuevo.(none)>
Fri, 12 Jun 2009 14:22:58 +0000 (16:22 +0200)
Add the rest of the types of value nodes that should be ignored by the
curves panel. This patch extends r2033, which fixes issue #2060732.

git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2343 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index c5ff451..b4a5678 100644 (file)
@@ -294,7 +294,10 @@ struct studio::Widget_Curves::CurveStruct : sigc::trackable
        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
+                       || x.get_value_type() == ValueBase::TYPE_GRADIENT
+                       || x.get_value_type() == ValueBase::TYPE_LIST
+                       || x.get_value_type() == ValueBase::TYPE_SEGMENT;
        }
 };