app: avoid id. matrix short-circuit in trans. tool when ...

... the matrix is not actually used

Don't abort transform-tool commits when the transformation matrix
is the identity, for transform tools that don't calculate a
transformation matrix to begin with (i.e., the flip tool),
otherwise they do nothing.
This commit is contained in:
Ell 2017-09-19 17:42:27 -04:00
parent 6dfe04e928
commit ee3ecb7833
1 changed files with 2 additions and 1 deletions

View File

@ -991,7 +991,8 @@ gimp_transform_tool_commit (GimpTransformTool *tr_tool)
if (tr_tool->gui)
gimp_tool_gui_hide (tr_tool->gui);
if (gimp_matrix3_is_identity (&tr_tool->transform))
if (GIMP_TRANSFORM_TOOL_GET_CLASS (tr_tool)->recalc_matrix &&
gimp_matrix3_is_identity (&tr_tool->transform))
{
/* No need to commit an identity transformation! */
return;