Commit 55bdd4e8 authored by Jehan's avatar Jehan
Browse files

app: check the XCF compat mode is still possible before saving.

Even if you saved previously in compatibility mode, you may have used
new features since, which would cancel the compat mode flag.
parent bdece29d
......@@ -261,12 +261,19 @@ file_save_cmd_callback (GtkAction *action,
if (file && save_proc)
{
gint rle_version;
gint zlib_version;
gimp_image_get_xcf_version (image, FALSE, &rle_version, NULL);
gimp_image_get_xcf_version (image, TRUE, &zlib_version, NULL);
saved = file_save_dialog_save_image (GIMP_PROGRESS (display),
gimp, image, file,
save_proc,
GIMP_RUN_WITH_LAST_VALS,
TRUE, FALSE, FALSE,
gimp_image_get_xcf_compat_mode (image),
gimp_image_get_xcf_compat_mode (image) &&
rle_version != zlib_version,
TRUE);
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment