From 32cd2ea563cf3f146576a1c84f44322a9bcb9537 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 15 Jan 2008 14:58:17 +0000 Subject: [PATCH] Changes related to saving .sif files containing mnemonic attributes for Composite ValueNodes. git-svn-id: http://svn.voria.com/code@1382 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/savecanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/savecanvas.cpp b/synfig-core/trunk/src/synfig/savecanvas.cpp index 645895c..c56986e 100644 --- a/synfig-core/trunk/src/synfig/savecanvas.cpp +++ b/synfig-core/trunk/src/synfig/savecanvas.cpp @@ -352,7 +352,7 @@ xmlpp::Element* encode_composite(xmlpp::Element* root,ValueNode_Composite::Const int i; for(i=0;ilink_count();i++) { - string name(strprintf("c%d",i+1)); + string name(value_node->link_name(i)); assert(value_node->get_link(i)); if(value_node->get_link(i)->is_exported()) root->set_attribute(name,value_node->get_link(i)->get_relative_id(canvas)); -- 2.7.4