Revision: 2216
http://synfig.svn.sourceforge.net/synfig/?rev=2216&view=rev
Author: dooglus
Date: 2008-11-18 23:28:32 +0000 (Tue, 18 Nov 2008)
Log Message:
-----------
Fix 1826376, 1848018, 1901753. All caused by not making a copy of a canvas
before exporting it. This fix isn't ideal because in some cases it isn't
necessary to duplicate the canvas, and it also leaves the canvas parameter of
any pastecanvas layers which use the canvas with their original value until it
is changed manually, but it stops the crashes.
Modified Paths:
--------------
synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp
Modified: synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp
===================================================================
--- synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp 2008-11-18
23:28:11 UTC (rev 2215)
+++ synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp 2008-11-18
23:28:32 UTC (rev 2216)
@@ -94,7 +94,7 @@
{
if(name=="src" && param.get_type()==Param::TYPE_CANVAS)
{
- new_canvas=param.get_canvas();
+ new_canvas=param.get_canvas()->clone();
return true;
}
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