[gimp/gimp-2-10] app: in GimpTransformGridTool, fix layer hiding



commit d74df147661358f6da34fd0ccfd9a1cf438f57db
Author: Ell <ell_se yahoo com>
Date:   Mon Feb 4 04:43:52 2019 -0500

    app: in GimpTransformGridTool, fix layer hiding
    
    In GimpTransformGridTool, when the "show-preview" tool-option
    changes, don't take the transform validity into account when
    deciding whether to hide the current layer -- it should only affect
    the visibility of the preview, not the layer.
    
    (cherry picked from commit 7ed512040ef2063ca6cf8997e2656311e8121b4c)

 app/tools/gimptransformgridtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/tools/gimptransformgridtool.c b/app/tools/gimptransformgridtool.c
index d903f84f05..8bb4e0656e 100644
--- a/app/tools/gimptransformgridtool.c
+++ b/app/tools/gimptransformgridtool.c
@@ -582,7 +582,7 @@ gimp_transform_grid_tool_options_notify (GimpTool         *tool,
           item    = gimp_transform_tool_get_active_item (tr_tool, display);
           if (item)
             {
-              if (show_preview)
+              if (gimp_transform_grid_options_show_preview (tg_options))
                 gimp_transform_grid_tool_hide_active_item (tg_tool, item);
               else
                 gimp_transform_grid_tool_show_active_item (tg_tool);


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