[gimp] Bug 794721 - CRITICAL converting image precision
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 794721 - CRITICAL converting image precision
- Date: Tue, 27 Mar 2018 13:40:35 +0000 (UTC)
commit cf658f64b5e91e1c3c741e0188b2505e6c970447
Author: Ell <ell_se yahoo com>
Date: Tue Mar 27 09:34:42 2018 -0400
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.
app/core/gimpimage-convert-precision.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpimage-convert-precision.c b/app/core/gimpimage-convert-precision.c
index 64838ae..005d3ae 100644
--- a/app/core/gimpimage-convert-precision.c
+++ b/app/core/gimpimage-convert-precision.c
@@ -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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]