Changes related to saving .sif files containing mnemonic attributes for Composite...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 15 Jan 2008 14:58:17 +0000 (14:58 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 15 Jan 2008 14:58:17 +0000 (14:58 +0000)
git-svn-id: http://svn.voria.com/code@1382 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/savecanvas.cpp

index 645895c..c56986e 100644 (file)
@@ -352,7 +352,7 @@ xmlpp::Element* encode_composite(xmlpp::Element* root,ValueNode_Composite::Const
        int i;
        for(i=0;i<value_node->link_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));