From: dooglus Date: Sat, 22 Nov 2008 15:27:43 +0000 (+0000) Subject: Use the new definition of ValueNode_DynamicList::create_new() in ValueNode_DynamicLis... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b581a185a1c557b78b03f2a9da437deeab778dc7;p=synfig.git Use the new definition of ValueNode_DynamicList::create_new() in ValueNode_DynamicList::clone(). git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2228 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/valuenode_dynamiclist.cpp b/synfig-core/trunk/src/synfig/valuenode_dynamiclist.cpp index 0f59a87..24dc450 100644 --- a/synfig-core/trunk/src/synfig/valuenode_dynamiclist.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_dynamiclist.cpp @@ -666,7 +666,7 @@ ValueNode_DynamicList::clone(const GUID& deriv_guid)const { { ValueNode* x(find_value_node(get_guid()^deriv_guid).get()); if(x)return x; } - ValueNode_DynamicList* ret=new ValueNode_DynamicList(container_type); + ValueNode_DynamicList* ret=dynamic_cast(create_new()); ret->set_guid(get_guid()^deriv_guid); std::vector::const_iterator iter;