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).
This commit is contained in:
Ell
2018-09-29 12:35:27 -04:00
parent ed20393f0e
commit d12dd3fb35

View File

@ -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);