From a532eda73076926167d4e255c4bcbbe342978747 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 1 Jan 2008 14:50:38 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/synfig/loadcanvas.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.7.4