[gimp/gimp-2-10] app: actually set the color frames to "not dirty" after updating them



commit a9636f7b1da2c454f657cf9b2a268e94990ee7c3
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
    
    (cherry picked from commit 9d5fc680f8a85611367565af9e5de2e2d87d959e)

 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 3044ff2284..464534451c 100644
--- a/app/widgets/gimpsamplepointeditor.c
+++ b/app/widgets/gimpsamplepointeditor.c
@@ -520,21 +520,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]