From 1fd9aa7c93922026fc66aef88985740f23766fe8 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 22 Nov 2008 15:25:49 +0000 Subject: [PATCH] Allow PasteCanvas layers with unset canvas parameters to be exported. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2226 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 1aa35a5..5d1554f 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()->clone(); + if (param.get_canvas()) new_canvas=param.get_canvas()->clone(); return true; } -- 2.7.4