From 01bed3975630929d007f82a8de05674ad1c21bf3 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 22 Jan 2008 12:30:56 +0000 Subject: [PATCH] If a canvas in a .sif file doesn't specify its version, inherit the version of its parent. git-svn-id: http://svn.voria.com/code@1420 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/loadcanvas.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index ce19988..60a30ee 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -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())); -- 2.7.4