[gimp] Make sure the layer preview's border is correct after removing a mask



commit 098a0e4491795a57a5c5a151ab32e132e9455b1d
Author: Michael Natterer <mitch gimp org>
Date:   Mon Sep 21 10:43:26 2009 +0200

    Make sure the layer preview's border is correct after removing a mask
    
    (gimp_layer_tree_view_mask_update): call
    gimp_layer_tree_view_update_borders() unconditionally; not only when a
    mask has been added, but also when it has been removed.

 app/widgets/gimplayertreeview.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimplayertreeview.c b/app/widgets/gimplayertreeview.c
index 7a336ce..848d558 100644
--- a/app/widgets/gimplayertreeview.c
+++ b/app/widgets/gimplayertreeview.c
@@ -1206,9 +1206,10 @@ gimp_layer_tree_view_mask_update (GimpLayerTreeView *layer_view,
                       layer_view->priv->model_column_mask_visible, mask_visible,
                       -1);
 
+  gimp_layer_tree_view_update_borders (layer_view, iter);
+
   if (renderer)
     {
-      gimp_layer_tree_view_update_borders (layer_view, iter);
       gimp_view_renderer_remove_idle (renderer);
       g_object_unref (renderer);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]