chain up before clearing src_drawable and src_display, so the draw tool

2006-09-13  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpsourcetool.c (gimp_source_tool_control): chain
	up before clearing src_drawable and src_display, so the draw
	tool can undraw the source marker. Fixes bug #355746.
This commit is contained in:
Michael Natterer 2006-09-13 10:56:24 +00:00 committed by Michael Natterer
parent c8800a628b
commit 2e0f6b6b02
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-09-13 Michael Natterer <mitch@gimp.org>
* app/tools/gimpsourcetool.c (gimp_source_tool_control): chain
up before clearing src_drawable and src_display, so the draw
tool can undraw the source marker. Fixes bug #355746.
2006-09-13 Michael Natterer <mitch@gimp.org>
* app/paint/gimpclone.c (gimp_clone_motion): don't access the

View file

@ -145,6 +145,11 @@ gimp_source_tool_control (GimpTool *tool,
{
GimpSourceTool *source_tool = GIMP_SOURCE_TOOL (tool);
/* chain up early so the draw tool can undraw the source marker
* while we still know about source drawable and display
*/
GIMP_TOOL_CLASS (parent_class)->control (tool, action, display);
switch (action)
{
case GIMP_TOOL_ACTION_PAUSE:
@ -158,8 +163,6 @@ gimp_source_tool_control (GimpTool *tool,
NULL);
break;
}
GIMP_TOOL_CLASS (parent_class)->control (tool, action, display);
}
static void