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
This commit is contained in:
twanvl
2011-03-30 13:10:03 +00:00
committed by Lymia Aluysia
parent bfcdfa31f3
commit 57279bb56e
+1 -1
View File
@@ -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));
}
}