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 18:27:50 +02:00
parent cb8a611e93
commit c9c28be9df
1 changed files with 3 additions and 0 deletions

View File

@ -260,6 +260,9 @@ gimp_blend_tool_button_release (GimpTool *tool,
gimp_image_flush (image);
}
tool->display = NULL;
tool->drawable = NULL;
}
static void