From 57279bb56ec221efe77c70f3799921683a560ee6 Mon Sep 17 00:00:00 2001 From: twanvl Date: Wed, 30 Mar 2011 13:10:03 +0000 Subject: [PATCH] Always save images as png, fixes #69 git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1704 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/value/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/value/image.cpp b/src/gui/value/image.cpp index 44ef2539..c20ec6fb 100644 --- a/src/gui/value/image.cpp +++ b/src/gui/value/image.cpp @@ -41,7 +41,7 @@ void ImageValueEditor::sliceImage(const Image& image) { // store the image into the set FileName new_image_file = getLocalPackage().newFileName(field().name,_("")); // a new unique name in the package Image img = s.getImage(); - img.SaveFile(getLocalPackage().nameOut(new_image_file), img.HasAlpha() ? wxBITMAP_TYPE_PNG : wxBITMAP_TYPE_JPEG); + img.SaveFile(getLocalPackage().nameOut(new_image_file), wxBITMAP_TYPE_PNG); // always use PNG images, see #69. Disk space is cheap anyway. addAction(value_action(valueP(), new_image_file)); } }