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.
This commit is contained in:
Ell
2019-02-04 04:43:52 -05:00
parent 3ebda874b5
commit 7ed512040e

View File

@ -582,7 +582,7 @@ gimp_transform_grid_tool_options_notify (GimpTool *tool,
item = gimp_transform_tool_get_active_item (tr_tool, display); item = gimp_transform_tool_get_active_item (tr_tool, display);
if (item) if (item)
{ {
if (show_preview) if (gimp_transform_grid_options_show_preview (tg_options))
gimp_transform_grid_tool_hide_active_item (tg_tool, item); gimp_transform_grid_tool_hide_active_item (tg_tool, item);
else else
gimp_transform_grid_tool_show_active_item (tg_tool); gimp_transform_grid_tool_show_active_item (tg_tool);