From 69ee4621b51e714c0962d54b6e679d9c175e56fa Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 17 Jan 2008 15:59:10 +0000 Subject: [PATCH] Be stricter on the "c[0-9]" link names accepted. git-svn-id: http://svn.voria.com/code@1391 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp b/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp index fc6996d..2df3815 100644 --- a/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp @@ -261,7 +261,7 @@ ValueNode_RadialComposite::get_link_index_from_name(const String &name)const if(name.empty()) throw Exception::BadLinkName(name); - if(name[0]=='c') + if(name[0]=='c' && name.size() == 2 && name[1]-'0' >= 0 && name[1]-'0' < link_count()) return name[1]-'0'; switch(get_type()) -- 2.7.4