mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user