[gimp] app: GimpFreeSelectTool: remove if (tool->display != display) checks
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: GimpFreeSelectTool: remove if (tool->display != display) checks
- Date: Wed, 30 Mar 2011 17:02:33 +0000 (UTC)
commit 96c8c35575f85ecf1ca215ff952f9870ee15dd37
Author: Michael Natterer <mitch gimp org>
Date: Wed Mar 30 19:01:11 2011 +0200
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.
app/tools/gimpfreeselecttool.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/app/tools/gimpfreeselecttool.c b/app/tools/gimpfreeselecttool.c
index e205ce9..de11c81 100644
--- a/app/tools/gimpfreeselecttool.c
+++ b/app/tools/gimpfreeselecttool.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]