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:
@ -59,6 +59,7 @@ gimp_image_convert_precision (GimpImage *image,
|
|||||||
const Babl *old_format;
|
const Babl *old_format;
|
||||||
const Babl *new_format;
|
const Babl *new_format;
|
||||||
GimpObjectQueue *queue;
|
GimpObjectQueue *queue;
|
||||||
|
GimpProgress *sub_progress;
|
||||||
GList *layers;
|
GList *layers;
|
||||||
GimpDrawable *drawable;
|
GimpDrawable *drawable;
|
||||||
const gchar *undo_desc = NULL;
|
const gchar *undo_desc = NULL;
|
||||||
@ -112,8 +113,8 @@ gimp_image_convert_precision (GimpImage *image,
|
|||||||
if (progress)
|
if (progress)
|
||||||
gimp_progress_start (progress, FALSE, "%s", undo_desc);
|
gimp_progress_start (progress, FALSE, "%s", undo_desc);
|
||||||
|
|
||||||
queue = gimp_object_queue_new (progress);
|
queue = gimp_object_queue_new (progress);
|
||||||
progress = GIMP_PROGRESS (queue);
|
sub_progress = GIMP_PROGRESS (queue);
|
||||||
|
|
||||||
layers = gimp_image_get_layer_list (image);
|
layers = gimp_image_get_layer_list (image);
|
||||||
gimp_object_queue_push_list (queue, layers);
|
gimp_object_queue_push_list (queue, layers);
|
||||||
@ -211,7 +212,7 @@ gimp_image_convert_precision (GimpImage *image,
|
|||||||
new_profile,
|
new_profile,
|
||||||
dither_type,
|
dither_type,
|
||||||
mask_dither_type,
|
mask_dither_type,
|
||||||
TRUE, progress);
|
TRUE, sub_progress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user