From: genete Date: Fri, 12 Sep 2008 23:44:38 +0000 (+0000) Subject: Fix bug introduced in patch applied in svn 2033 making it work properly. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=de6b5bb9824313ddedc0fb5e3b4bdaae2ff09882;p=synfig.git Fix bug introduced in patch applied in svn 2033 making it work properly. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2050 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp index 4b43405..cef4977 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp @@ -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 value_descs) std::list::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 {