mirror of https://github.com/GNOME/gimp.git
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:
parent
c9c28be9df
commit
ed2c002fd8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue