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:
EDT 1998 Matthew Wilson 1998-04-14 22:05:08 +00:00 committed by Matt Wilson
parent b2f00c5412
commit d49b7e4111
5 changed files with 17 additions and 5 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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);
}
}