Module: synfig/synfig
Branch: genete_width_outline
Commit: e59418161af8c970ec17966287c95da2326e3f7e
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=e59418161af8c970ec17966287c95da2326e3f7e

Author: Carlos Lopez <[email protected]>
Date:   Thu Jan 13 14:14:19 2011 +0100

Don't save to file not critical subparameters

---

 synfig-core/src/synfig/savecanvas.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/synfig-core/src/synfig/savecanvas.cpp 
b/synfig-core/src/synfig/savecanvas.cpp
index 218b37d..e841f38 100644
--- a/synfig-core/src/synfig/savecanvas.cpp
+++ b/synfig-core/src/synfig/savecanvas.cpp
@@ -464,14 +464,16 @@ xmlpp::Element* 
encode_linkable_value_node(xmlpp::Element* root,LinkableValueNod
        
root->set_attribute("type",ValueBase::type_name(value_node->get_type()));
 
        int i;
-       for(i=0;i<value_node->link_count();i++)
+       synfig::ParamVocab child_vocab(value_node->get_children_vocab());
+       synfig::ParamVocab::iterator iter(child_vocab.begin());
+       for(i=0;i<value_node->link_count();i++, iter++)
        {
                ValueNode::ConstHandle link=value_node->get_link(i).constant();
                if(!link)
                        throw runtime_error("Bad link");
                if(link->is_exported())
                        
root->set_attribute(value_node->link_name(i),link->get_relative_id(canvas));
-               else
+               else if(iter->get_critical())
                        
encode_value_node(root->add_child(value_node->link_name(i))->add_child("value_node"),link,canvas);
        }
 


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to