Author: Carlos Lopez <[email protected]>
Date: Fri Jan 13 18:22:00 2012 +0100
When loading a exported linkable value node consider that the sub parameter can
be exported too and so, don't throw the exception.
Only if the sub parameter value node is exported and belong to other canvas
then and it is not found, then throw the exception.
---
synfig-core/src/synfig/loadcanvas.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/synfig-core/src/synfig/loadcanvas.cpp
b/synfig-core/src/synfig/loadcanvas.cpp
index a1cc2ee..e9277ec 100644
--- a/synfig-core/src/synfig/loadcanvas.cpp
+++ b/synfig-core/src/synfig/loadcanvas.cpp
@@ -1547,9 +1547,10 @@ CanvasParser::parse_linkable_value_node(xmlpp::Element
*element,Canvas::Handle c
element->get_name().c_str()));
continue;
}
-
+ int
placeholders(canvas->value_node_list().placeholder_count());
c[index] = canvas->surefind_value_node(id);
-
if(PlaceholderValueNode::Handle::cast_dynamic(c[index]))
+ if(placeholders ==
canvas->value_node_list().placeholder_count())
+
if(PlaceholderValueNode::Handle::cast_dynamic(c[index]) )
throw
Exception::IDNotFound("parse_linkable_value_noode()");
if (!c[index])
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl