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:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user