Make the checks in GimpTool::initialize() work reliably

Set tool->display and tool->drawable to NULL in button_release()
so initialize() is actually called before each button_press().
This commit is contained in:
Michael Natterer 2009-08-21 19:04:45 +02:00
parent c9c28be9df
commit ed2c002fd8
1 changed files with 3 additions and 0 deletions

View File

@ -195,6 +195,9 @@ gimp_bucket_fill_tool_button_release (GimpTool *tool,
GIMP_TOOL_CLASS (parent_class)->button_release (tool, coords, time, state,
release_type, display);
tool->display = NULL;
tool->drawable = NULL;
}
static void