mirror of https://github.com/GNOME/gimp.git
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:
parent
0fee9209e3
commit
70d84d2eba
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue