added a change to make a note of the current drawable in the

Thu Apr  2 01:49:34 EST 1998 Matthew Wilson <msw@gimp.org>

	* app/transform_core.c: added a change to make a note of the
	current drawable in the button_release.  This prevents the tool
	from being restarted when the transform_core makes a floating
	selection.
	* app/tools.c: Initialize the current drawable to NULL if
	there is gdisp == NULL.

--Matt
This commit is contained in:
EST 1998 Matthew Wilson 1998-04-03 06:51:56 +00:00 committed by Matt Wilson
parent 0fee9209e3
commit 70d84d2eba
5 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,12 @@
Thu Apr 2 01:49:34 EST 1998 Matthew Wilson <msw@gimp.org>
* app/transform_core.c: added a change to make a note of the
current drawable in the button_release. This prevents the tool
from being restarted when the transform_core makes a floating
selection.
* app/tools.c: Initialize the current drawable to NULL if
there is gdisp == NULL.
Thu Apr 2 23:52:54 EST 1998 Matthew Wilson <msw@gimp.org
* app/gimage.c

View file

@ -552,6 +552,8 @@ tools_initialize (ToolType type, GDisplay *gdisp_ptr)
*/
if (gdisp)
active_tool->drawable = gimage_active_drawable (gdisp->gimage);
else
active_tool->drawable = NULL;
active_tool->gdisp_ptr = NULL;
active_tool->ID = global_tool_ID++;
active_tool_type = active_tool->type;

View file

@ -552,6 +552,8 @@ tools_initialize (ToolType type, GDisplay *gdisp_ptr)
*/
if (gdisp)
active_tool->drawable = gimage_active_drawable (gdisp->gimage);
else
active_tool->drawable = NULL;
active_tool->gdisp_ptr = NULL;
active_tool->ID = global_tool_ID++;
active_tool_type = active_tool->type;

View file

@ -268,6 +268,11 @@ transform_core_button_release (tool, bevent, gdisp_ptr)
tu->first = first_transform;
tu->original = NULL;
/* Make a note of the new current drawable (since we may have
a floating selection, etc now. */
tool->drawable = gimage_active_drawable (gdisp->gimage);
undo_push_transform (gdisp->gimage, (void *) tu);
}

View file

@ -268,6 +268,11 @@ transform_core_button_release (tool, bevent, gdisp_ptr)
tu->first = first_transform;
tu->original = NULL;
/* Make a note of the new current drawable (since we may have
a floating selection, etc now. */
tool->drawable = gimage_active_drawable (gdisp->gimage);
undo_push_transform (gdisp->gimage, (void *) tu);
}