Fix 1811250: Prevent studio crashing when loading a document that contains an unknown...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 1 Jan 2008 14:50:38 +0000 (14:50 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 1 Jan 2008 14:50:38 +0000 (14:50 +0000)
git-svn-id: http://svn.voria.com/code@1248 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/loadcanvas.cpp

index f0b68b4..5e5d0d3 100644 (file)
@@ -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();
        }