From: dooglus Date: Tue, 1 Jan 2008 14:50:38 +0000 (+0000) Subject: Fix 1811250: Prevent studio crashing when loading a document that contains an unknown... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a532eda73076926167d4e255c4bcbbe342978747;p=synfig.git Fix 1811250: Prevent studio crashing when loading a document that contains an unknown valuenode type from a newer version of synfig. Simply refuse to load the document instead. git-svn-id: http://svn.voria.com/code@1248 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index f0b68b4..5e5d0d3 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -1630,6 +1630,7 @@ CanvasParser::parse_value_node(xmlpp::Element *element,Canvas::Handle canvas) { error_unexpected_element(element,element->get_name()); error(element, "Expected a ValueNode"); + value_node=PlaceholderValueNode::create(); }