Revision: 2142
http://synfig.svn.sourceforge.net/synfig/?rev=2142&view=rev
Author: dooglus
Date: 2008-11-02 17:24:35 +0000 (Sun, 02 Nov 2008)
Log Message:
-----------
Fix 1968248: "Opening of any other XML-file crashes synfigstudio". Attempting
to open a non-SIF format XML file will now produce an error message, not a
crash.
Modified Paths:
--------------
synfig-core/trunk/src/synfig/loadcanvas.cpp
Modified: synfig-core/trunk/src/synfig/loadcanvas.cpp
===================================================================
--- synfig-core/trunk/src/synfig/loadcanvas.cpp 2008-10-29 01:32:00 UTC (rev
2141)
+++ synfig-core/trunk/src/synfig/loadcanvas.cpp 2008-11-02 17:24:35 UTC (rev
2142)
@@ -2097,6 +2097,7 @@
if(parser)
{
Canvas::Handle
canvas(parse_canvas(parser.get_document()->get_root_node(),0,false,as));
+ if (!canvas) return canvas;
get_open_canvas_map()[etl::absolute_path(as)]=canvas;
canvas->signal_deleted().connect(sigc::bind(sigc::ptr_fun(_remove_from_open_canvas_map),canvas.get()));
canvas->signal_file_name_changed().connect(sigc::bind(sigc::ptr_fun(_canvas_file_name_changed),canvas.get()));
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl