From: dooglus Date: Fri, 25 Jan 2008 14:11:36 +0000 (+0000) Subject: Prevent warning from g++ 4.3. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=29d94ccd0730e4c4f3287438910ef1bea4c89ba3;p=synfig.git Prevent warning from g++ 4.3. git-svn-id: http://svn.voria.com/code@1472 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index b657776..c59075e 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -1073,6 +1073,7 @@ CanvasParser::parse_animated(xmlpp::Element *element,Canvas::Handle canvas) if (first) first = false; else if (iter->get_value_node()->get_name() == "constant") + { if (angle - prev > 180) { while (angle - prev > 180) angle -= 360; @@ -1083,6 +1084,7 @@ CanvasParser::parse_animated(xmlpp::Element *element,Canvas::Handle canvas) while (prev - angle > 180) angle += 360; iter->set_value(Angle::deg(angle)); } + } prev = angle; } }