From: dooglus Date: Sat, 22 Nov 2008 15:25:49 +0000 (+0000) Subject: Allow PasteCanvas layers with unset canvas parameters to be exported. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1fd9aa7c93922026fc66aef88985740f23766fe8;p=synfig.git 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 --- 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; }