Commit d49b7e41 authored by EDT 1998 Matthew Wilson's avatar EDT 1998 Matthew Wilson Committed by Matt Wilson

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
parent b2f00c54
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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment