mirror of https://github.com/GNOME/gimp.git
Set active_tool->drawable to NULL when destroying the gdisplay that the
Tue Apr 14 18:01:50 EDT 1998 Matthew Wilson <msw@gimp.org> * app/gdisplay.c: Set active_tool->drawable to NULL when destroying the gdisplay that the active tool points to. * app/giamge.c: Fixed spacing... --Matt
This commit is contained in:
parent
b2f00c5412
commit
d49b7e4111
|
@ -1,3 +1,9 @@
|
|||
Tue Apr 14 18:01:50 EDT 1998 Matthew Wilson <msw@gimp.org>
|
||||
|
||||
* app/gdisplay.c: Set active_tool->drawable to NULL when destroying
|
||||
the gdisplay that the active tool points to.
|
||||
* app/giamge.c: Fixed spacing...
|
||||
|
||||
Tue Apr 14 13:40:07 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gradient.c: handle delete_event for color selector properly
|
||||
|
|
|
@ -194,8 +194,10 @@ gdisplay_delete (GDisplay *gdisp)
|
|||
|
||||
if (active_tool && active_tool->gdisp_ptr) {
|
||||
tool_gdisp = active_tool->gdisp_ptr;
|
||||
if (gdisp->ID == tool_gdisp->ID)
|
||||
if (gdisp->ID == tool_gdisp->ID) {
|
||||
active_tool->drawable = NULL;
|
||||
active_tool->gdisp_ptr = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* free the selection structure */
|
||||
|
|
|
@ -194,8 +194,10 @@ gdisplay_delete (GDisplay *gdisp)
|
|||
|
||||
if (active_tool && active_tool->gdisp_ptr) {
|
||||
tool_gdisp = active_tool->gdisp_ptr;
|
||||
if (gdisp->ID == tool_gdisp->ID)
|
||||
if (gdisp->ID == tool_gdisp->ID) {
|
||||
active_tool->drawable = NULL;
|
||||
active_tool->gdisp_ptr = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* free the selection structure */
|
||||
|
|
|
@ -194,8 +194,10 @@ gdisplay_delete (GDisplay *gdisp)
|
|||
|
||||
if (active_tool && active_tool->gdisp_ptr) {
|
||||
tool_gdisp = active_tool->gdisp_ptr;
|
||||
if (gdisp->ID == tool_gdisp->ID)
|
||||
if (gdisp->ID == tool_gdisp->ID) {
|
||||
active_tool->drawable = NULL;
|
||||
active_tool->gdisp_ptr = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* free the selection structure */
|
||||
|
|
|
@ -2634,9 +2634,9 @@ gimage_dirty (GImage *gimage)
|
|||
gdisp = active_tool->gdisp_ptr;
|
||||
if (gdisp) {
|
||||
if (gdisp->gimage->ID == gimage->ID)
|
||||
tools_initialize (active_tool->type, gdisp);
|
||||
tools_initialize (active_tool->type, gdisp);
|
||||
else
|
||||
tools_initialize (active_tool->type, NULL);
|
||||
tools_initialize (active_tool->type, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue