Fix 1826376, 1848018, 1901753. All caused by not making a copy of a canvas before...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 18 Nov 2008 23:28:32 +0000 (23:28 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 18 Nov 2008 23:28:32 +0000 (23:28 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2216 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index afec584..1aa35a5 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();
+               new_canvas=param.get_canvas()->clone();
 
                return true;
        }