From 7d00f13f8a31e4a329736180412bf76af666f4f5 Mon Sep 17 00:00:00 2001 From: pabs3 Date: Tue, 4 Nov 2008 07:26:49 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp | 2 +- synfig-core/trunk/src/modules/mod_png/mptr_png.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.7.4