From e8ac1c4d98d6d600009fa7747cbaa0876d8a59ec Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 7 Sep 2007 19:07:50 +0000 Subject: [PATCH] Prevent a warning from the compiler. It warns that "loadcanvas.cpp:349: warning: 'color.synfig::Color::r_' may be used uninitialized in this function" (and g_, b_ and a_, too), whereas so long as the .sif file isn't corrupted, this won't happen. git-svn-id: http://svn.voria.com/code@619 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/loadcanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index 220c7a4..9528991 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -346,7 +346,7 @@ CanvasParser::parse_color(xmlpp::Element *element,Canvas::Handle canvas) return Color(); } - Color color; + Color color(0); xmlpp::Element::NodeList list = element->get_children(); for(xmlpp::Element::NodeList::iterator iter = list.begin(); iter != list.end(); ++iter) -- 2.7.4