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

This commit is contained in:
Michael Natterer
2014-05-16 16:28:24 +02:00
parent f50b215d16
commit befb871b6e

View File

@ -292,8 +292,10 @@ gimp_operation_tool_reset (GimpImageMapTool *image_map_tool)
{ {
GimpOperationTool *tool = GIMP_OPERATION_TOOL (image_map_tool); GimpOperationTool *tool = GIMP_OPERATION_TOOL (image_map_tool);
if (tool->config) GIMP_IMAGE_MAP_TOOL_CLASS (parent_class)->reset (image_map_tool);
gimp_config_reset (GIMP_CONFIG (tool->config));
if (tool->config && GIMP_TOOL (tool)->drawable)
gimp_operation_tool_sync_op (tool, GIMP_TOOL (tool)->drawable);
} }
static GtkWidget * static GtkWidget *