Commit 9d9f30e7 authored by Jehan's avatar Jehan
Browse files

app: warning message when compat mode set yet cannot be applied.

This would typically happen if the compat mode was set earlier through
the save dialog, then later changes in the image render it inapplicable.
When this happens, we unset the compat mode, and saves without error,
but still emit a warning for the user to know the compatibility got
dropped.
parent cb84d4bd
......@@ -261,12 +261,19 @@ file_save_cmd_callback (GtkAction *action,
if (file && save_proc)
{
gint rle_version;
gint zlib_version;
const gchar *version_string;
gint rle_version;
gint zlib_version;
gimp_image_get_xcf_version (image, FALSE, &rle_version, NULL);
gimp_image_get_xcf_version (image, FALSE, &rle_version, &version_string);
gimp_image_get_xcf_version (image, TRUE, &zlib_version, NULL);
if (rle_version == zlib_version && gimp_image_get_xcf_compat_mode (image))
gimp_message (image->gimp, G_OBJECT (display), GIMP_MESSAGE_WARNING,
_("The image uses features from %s and "
"cannot be saved for older GIMP "
"versions."),
version_string);
saved = file_save_dialog_save_image (GIMP_PROGRESS (display),
gimp, image, file,
save_proc,
......
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