mirror of https://github.com/GNOME/gimp.git
app: GimpFreeSelectTool: remove if (tool->display != display) checks
This can't happen in motion() and release() because they won't be called if we didn't activate the tool.
This commit is contained in:
parent
9755d7d06c
commit
96c8c35575
|
@ -1358,9 +1358,6 @@ gimp_free_select_tool_button_release (GimpTool *tool,
|
|||
GimpFreeSelectTool *fst = GIMP_FREE_SELECT_TOOL (tool);
|
||||
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
|
||||
|
||||
if (tool->display != display)
|
||||
return;
|
||||
|
||||
gimp_tool_control_halt (tool->control);
|
||||
|
||||
gimp_draw_tool_pause (GIMP_DRAW_TOOL (fst));
|
||||
|
@ -1411,9 +1408,6 @@ gimp_free_select_tool_motion (GimpTool *tool,
|
|||
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
|
||||
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (tool);
|
||||
|
||||
if (tool->display != display)
|
||||
return;
|
||||
|
||||
gimp_draw_tool_pause (draw_tool);
|
||||
|
||||
priv->last_coords.x = coords->x;
|
||||
|
|
Loading…
Reference in New Issue