From b581a185a1c557b78b03f2a9da437deeab778dc7 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 22 Nov 2008 15:27:43 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/synfig/valuenode_dynamiclist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4