From: pabs3 Date: Tue, 4 Nov 2008 07:26:49 +0000 (+0000) Subject: Fix crash when unsetting import layer filename after using PNG or JPEG importers. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7d00f13f8a31e4a329736180412bf76af666f4f5;p=synfig.git Fix crash when unsetting import layer filename after using PNG or JPEG importers. Thanks to wlaut for discovering it. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2145 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp b/synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp index ee2f418..84f5403 100644 --- a/synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp @@ -251,6 +251,6 @@ jpeg_mptr::~jpeg_mptr() bool jpeg_mptr::get_frame(synfig::Surface &surface,Time, synfig::ProgressCallback */*cb*/) { - surface.mirror(surface_buffer); + surface=surface_buffer; return true; } diff --git a/synfig-core/trunk/src/modules/mod_png/mptr_png.cpp b/synfig-core/trunk/src/modules/mod_png/mptr_png.cpp index 1b6c99b..a0b021a 100644 --- a/synfig-core/trunk/src/modules/mod_png/mptr_png.cpp +++ b/synfig-core/trunk/src/modules/mod_png/mptr_png.cpp @@ -339,7 +339,6 @@ png_mptr::~png_mptr() bool png_mptr::get_frame(synfig::Surface &surface,Time, synfig::ProgressCallback */*cb*/) { - surface.mirror(surface_buffer); -// surface=surface_buffer; + surface=surface_buffer; return true; }