From e6dbee59176eefca34c2dd2edb27b6801db3d99c Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 18 Nov 2008 23:28:32 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4