If a canvas in a .sif file doesn't specify its version, inherit the version of its...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 22 Jan 2008 12:30:56 +0000 (12:30 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 22 Jan 2008 12:30:56 +0000 (12:30 +0000)
git-svn-id: http://svn.voria.com/code@1420 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index ce19988..60a30ee 100644 (file)
@@ -1832,6 +1832,8 @@ CanvasParser::parse_canvas(xmlpp::Element *element,Canvas::Handle parent,bool in
 
        if(element->get_attribute("version"))
                canvas->set_version(element->get_attribute("version")->get_value());
+       else if(parent)
+               canvas->set_version(parent->get_version());
 
        if(element->get_attribute("width"))
                canvas->rend_desc().set_w(atoi(element->get_attribute("width")->get_value().c_str()));