From b53a872305248363a7e5e2df37d1ab56b63c4136 Mon Sep 17 00:00:00 2001 From: gballintijn Date: Fri, 22 Aug 2008 20:05:34 +0000 Subject: [PATCH] Fix 2060732: Incorrect error message when selecting a filename or canvas parameter. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2033 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/widget_curves.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp index e90f53d..4b43405 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_curves.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_curves.cpp @@ -289,6 +289,12 @@ struct studio::Widget_Curves::CurveStruct : sigc::trackable return -channels[chan].values[time]; } + + static bool is_supported(const synfigapp::ValueDesc& x) + { + return x.get_value_type() == ValueBase::TYPE_STRING + && x.get_value_type() == ValueBase::TYPE_CANVAS; + } }; /* === M E T H O D S ======================================================= */ @@ -365,6 +371,9 @@ 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)) + continue; + try { curve_list_.push_back(*iter); if(iter->is_value_node()) -- 2.7.4