From: dooglus Date: Tue, 18 Nov 2008 23:28:32 +0000 (+0000) Subject: Fix 1826376, 1848018, 1901753. All caused by not making a copy of a canvas before... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e6dbee59176eefca34c2dd2edb27b6801db3d99c;p=synfig.git 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. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2216 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp b/synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp index afec584..1aa35a5 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp @@ -94,7 +94,7 @@ Action::CanvasAdd::set_param(const synfig::String& name, const Action::Param &pa { if(name=="src" && param.get_type()==Param::TYPE_CANVAS) { - new_canvas=param.get_canvas(); + new_canvas=param.get_canvas()->clone(); return true; }