Fix 2315706: "Rename Exported Valuenode from imported canvases crash". Stop the...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 22 Nov 2008 15:57:54 +0000 (15:57 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 22 Nov 2008 15:57:54 +0000 (15:57 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2256 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/canvasinterface.cpp

index 13e5871..da1a802 100644 (file)
@@ -588,6 +588,7 @@ CanvasInterface::import(const synfig::String &filename, synfig::String &errors,
                        throw String(_("Unable to create \"Paste Canvas\" layer"));
                if(!layer->set_param("canvas",ValueBase(outside_canvas)))
                        throw int();
+               get_canvas()->register_external_canvas(filename, outside_canvas);
 
                //layer->set_description(basename(filename));
                signal_layer_new_description()(layer,filename);