[gimp] app: actually set the color frames to "not dirty" after updating them
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: actually set the color frames to "not dirty" after updating them
- Date: Wed, 23 May 2018 23:53:59 +0000 (UTC)
commit 9d5fc680f8a85611367565af9e5de2e2d87d959e
Author: Michael Natterer <mitch gimp org>
Date: Thu May 24 01:52:29 2018 +0200
app: actually set the color frames to "not dirty" after updating them
app/widgets/gimpsamplepointeditor.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/app/widgets/gimpsamplepointeditor.c b/app/widgets/gimpsamplepointeditor.c
index fe7a956e05..3f41da1730 100644
--- a/app/widgets/gimpsamplepointeditor.c
+++ b/app/widgets/gimpsamplepointeditor.c
@@ -522,21 +522,20 @@ gimp_sample_point_editor_update (GimpSamplePointEditor *editor)
i < n_points;
i++, list = g_list_next (list))
{
- if (GPOINTER_TO_INT (g_object_get_data (G_OBJECT (editor->color_frames[i]),
+ GimpColorFrame *color_frame = GIMP_COLOR_FRAME (editor->color_frames[i]);
+
+ if (GPOINTER_TO_INT (g_object_get_data (G_OBJECT (color_frame),
"dirty")))
{
GimpSamplePoint *sample_point = list->data;
- GimpColorFrame *color_frame;
const Babl *format;
guchar pixel[32];
GimpRGB color;
gint x;
gint y;
- g_object_set_data (G_OBJECT (editor->color_frames[i]),
- "dirty", GINT_TO_POINTER (TRUE));
-
- color_frame = GIMP_COLOR_FRAME (editor->color_frames[i]);
+ g_object_set_data (G_OBJECT (color_frame),
+ "dirty", GINT_TO_POINTER (FALSE));
gimp_sample_point_get_position (sample_point, &x, &y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]