From dde9e2714a61d109c8245ea67c17a312483fa57d Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 22 Jan 2008 12:31:05 +0000 Subject: [PATCH] Following the previous commit, there's no need to walk up the canvas tree to find the root when checking the canvas version. git-svn-id: http://svn.voria.com/code@1421 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/loadcanvas.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index 60a30ee..b657776 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -1062,11 +1062,7 @@ CanvasParser::parse_animated(xmlpp::Element *element,Canvas::Handle canvas) // waypoint's value if (type == ValueBase::TYPE_ANGLE) { - Canvas::Handle parent = canvas; - while (!parent->is_root()) - parent = parent->parent(); - - if (parent->get_version() == "0.1") + if (canvas->get_version() == "0.1") { bool first = true; Real angle, prev = 0; -- 2.7.4