[gimp] app: fix rectangle select tool cursor after committing/halting
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix rectangle select tool cursor after committing/halting
- Date: Thu, 26 Apr 2018 11:02:21 +0000 (UTC)
commit a44e1500fa77dd38ca85b774c6a4a0181654d4ba
Author: Michael Natterer <mitch gimp org>
Date: Thu Apr 26 13:00:18 2018 +0200
app: fix rectangle select tool cursor after committing/halting
gimp_rectangle_select_tool_cursor_update(): always set a cursor and
cursor modifier even if no GimpToolRectangle widget exists, so we are
not stuck with the last set cursor after committing or halting the
tool.
app/tools/gimprectangleselecttool.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimprectangleselecttool.c b/app/tools/gimprectangleselecttool.c
index 7567df2..60ca8ad 100644
--- a/app/tools/gimprectangleselecttool.c
+++ b/app/tools/gimprectangleselecttool.c
@@ -465,11 +465,11 @@ gimp_rectangle_select_tool_cursor_update (GimpTool *tool,
{
gimp_tool_widget_get_cursor (private->widget, coords, state,
&cursor, NULL, &modifier);
-
- gimp_tool_control_set_cursor (tool->control, cursor);
- gimp_tool_control_set_cursor_modifier (tool->control, modifier);
}
+ gimp_tool_control_set_cursor (tool->control, cursor);
+ gimp_tool_control_set_cursor_modifier (tool->control, modifier);
+
/* override the previous if shift or ctrl are down */
if (state & (gimp_get_extend_selection_mask () |
gimp_get_modify_selection_mask ()))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]