[gimp] cagetool: fix the restoration of the image when going back to edit mode
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] cagetool: fix the restoration of the image when going back to edit mode
- Date: Mon, 4 Apr 2011 22:06:13 +0000 (UTC)
commit 2200b800335c0d0fc52d6a41c39c25ca877dd256
Author: Michael Muré <batolettre gmail com>
Date: Mon Apr 4 23:33:53 2011 +0200
cagetool: fix the restoration of the image when going back to edit mode
app/tools/gimpcagetool.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 65b8808..25ae04b 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -371,13 +371,8 @@ gimp_cage_tool_options_notify (GimpTool *tool,
else
{
/* switch to edit mode */
-
- if (ct->image_map)
- {
- gimp_image_map_abort (ct->image_map);
- g_object_unref (ct->image_map);
- ct->image_map = NULL;
- }
+ gimp_image_map_clear (ct->image_map);
+ gimp_cage_tool_image_map_flush (ct->image_map, tool);
gimp_tool_pop_status (tool, tool->display);
ct->tool_state = CAGE_STATE_WAIT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]