Bug 794721 - CRITICAL converting image precision

In gimp_image_convert_precision(), don't overwrite the 'progress'
parameter with the object queue, since we need to call
gimp_progress_end() on it at the end of the process.
This commit is contained in:
Ell 2018-03-27 09:34:42 -04:00
parent 7f96c9e7c6
commit cf658f64b5
1 changed files with 4 additions and 3 deletions

View File

@ -59,6 +59,7 @@ gimp_image_convert_precision (GimpImage *image,
const Babl *old_format;
const Babl *new_format;
GimpObjectQueue *queue;
GimpProgress *sub_progress;
GList *layers;
GimpDrawable *drawable;
const gchar *undo_desc = NULL;
@ -112,8 +113,8 @@ gimp_image_convert_precision (GimpImage *image,
if (progress)
gimp_progress_start (progress, FALSE, "%s", undo_desc);
queue = gimp_object_queue_new (progress);
progress = GIMP_PROGRESS (queue);
queue = gimp_object_queue_new (progress);
sub_progress = GIMP_PROGRESS (queue);
layers = gimp_image_get_layer_list (image);
gimp_object_queue_push_list (queue, layers);
@ -211,7 +212,7 @@ gimp_image_convert_precision (GimpImage *image,
new_profile,
dither_type,
mask_dither_type,
TRUE, progress);
TRUE, sub_progress);
}
}