Allow PasteCanvas layers with unset canvas parameters to be exported.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 22 Nov 2008 15:25:49 +0000 (15:25 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 22 Nov 2008 15:25:49 +0000 (15:25 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2226 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/actions/canvasadd.cpp

index 1aa35a5..5d1554f 100644 (file)
@@ -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;
        }