[gimp] app: cancel the active tool before going brightness/contrast->levels->curves
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: cancel the active tool before going brightness/contrast->levels->curves
- Date: Fri, 18 Apr 2014 19:18:16 +0000 (UTC)
commit a53c2f8b300742971a799f2e711b1571382df345
Author: Michael Natterer <mitch gimp org>
Date: Fri Apr 18 21:15:46 2014 +0200
app: cancel the active tool before going brightness/contrast->levels->curves
because changing tools now automatically commits the old tool.
app/tools/gimpimagemaptool.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimpimagemaptool.c b/app/tools/gimpimagemaptool.c
index 7d4a066..ad3538b 100644
--- a/app/tools/gimpimagemaptool.c
+++ b/app/tools/gimpimagemaptool.c
@@ -811,7 +811,7 @@ gimp_image_map_tool_edit_as (GimpImageMapTool *im_tool,
GimpTool *new_tool;
g_return_if_fail (GIMP_IS_IMAGE_MAP_TOOL (im_tool));
- g_return_if_fail (new_tool_id);
+ g_return_if_fail (new_tool_id != NULL);
g_return_if_fail (GIMP_IS_CONFIG (config));
display = GIMP_TOOL (im_tool)->display;
@@ -822,6 +822,7 @@ gimp_image_map_tool_edit_as (GimpImageMapTool *im_tool,
gimp_container_get_child_by_name (display->gimp->tool_info_list,
new_tool_id);
+ gimp_tool_control (GIMP_TOOL (im_tool), GIMP_TOOL_ACTION_HALT, display);
gimp_context_set_tool (user_context, tool_info);
tool_manager_initialize_active (display->gimp, display);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]