Commit d12dd3fb authored by Ell's avatar Ell
Browse files

app: don't commit trivial warp transform

In the warp tool, don't commit a trivial (empty) transform.  This
is especially important now that exiting the tool through undo
causes it to get comitted (... with a trivial transform).
parent ed20393f
......@@ -753,7 +753,8 @@ gimp_warp_tool_commit (GimpWarpTool *wt)
GimpTool *tool = GIMP_TOOL (wt);
if (wt->filter)
/* don't commit a nop */
if (tool->display && gimp_tool_can_undo (tool, tool->display))
gimp_tool_control_push_preserve (tool->control, TRUE);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment