[gimp] app: GimpOperationTool sync the op with drawable/context in reset()



commit befb871b6e1827d97cadf660e181010e5471c42f
Author: Michael Natterer <mitch gimp org>
Date:   Fri May 16 16:28:24 2014 +0200

    app: GimpOperationTool sync the op with drawable/context in reset()

 app/tools/gimpoperationtool.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpoperationtool.c b/app/tools/gimpoperationtool.c
index 0e697af..97cdd5e 100644
--- a/app/tools/gimpoperationtool.c
+++ b/app/tools/gimpoperationtool.c
@@ -292,8 +292,10 @@ gimp_operation_tool_reset (GimpImageMapTool *image_map_tool)
 {
   GimpOperationTool *tool = GIMP_OPERATION_TOOL (image_map_tool);
 
-  if (tool->config)
-    gimp_config_reset (GIMP_CONFIG (tool->config));
+  GIMP_IMAGE_MAP_TOOL_CLASS (parent_class)->reset (image_map_tool);
+
+  if (tool->config && GIMP_TOOL (tool)->drawable)
+    gimp_operation_tool_sync_op (tool, GIMP_TOOL (tool)->drawable);
 }
 
 static GtkWidget *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]