From: dooglus Date: Tue, 18 Nov 2008 23:28:11 +0000 (+0000) Subject: Several bugs in the tracker are related to crashes caused when exporting canvases... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f45dcb953197ef7a76a314eac0a24516119ccb76;p=synfig.git Several bugs in the tracker are related to crashes caused when exporting canvases. I think this is caused by the way that exporting a canvas doesn't make a copy of the canvas. Cloning non-inline canvases was disabled in canvas.cpp; this revision reenables it. This shouldn't cause any problems, and will allow me to experiment with fixes for the crashing bugs. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2215 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/canvas.cpp b/synfig-core/trunk/src/synfig/canvas.cpp index 303cdce..c2cf775 100644 --- a/synfig-core/trunk/src/synfig/canvas.cpp +++ b/synfig-core/trunk/src/synfig/canvas.cpp @@ -52,6 +52,8 @@ namespace synfig { extern Canvas::Handle open_canvas(const String &filename, Str /* === M A C R O S ========================================================= */ +#define ALLOW_CLONE_NON_INLINE_CANVASES + struct _CanvasCounter { static int counter; @@ -781,7 +783,9 @@ Canvas::clone(const GUID& deriv_guid)const { name=get_id()+"_CLONE"; +#ifndef ALLOW_CLONE_NON_INLINE_CANVASES throw runtime_error("Cloning of non-inline canvases is not yet supported"); +#endif // ALLOW_CLONE_NON_INLINE_CANVASES } Handle canvas(new Canvas(name));