Fix crash when unsetting import layer filename after using PNG or JPEG importers.
authorpabs3 <pabs3@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 4 Nov 2008 07:26:49 +0000 (07:26 +0000)
committerpabs3 <pabs3@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 4 Nov 2008 07:26:49 +0000 (07:26 +0000)
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
synfig-core/trunk/src/modules/mod_png/mptr_png.cpp

index ee2f418..84f5403 100644 (file)
@@ -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;
 }
index 1b6c99b..a0b021a 100644 (file)
@@ -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;
 }