Only destroy the current tool if you change gdisplays and the tool caches

Wed Apr 01 04:07:29 EST 1998 Matthew Wilson <msw@gimp.org>

	* app/disp_callbacks.c: Only destroy the current tool if you change
	gdisplays and the tool caches image data.

--Matt "flood the commits-list" Wilson
This commit is contained in:
EST 1998 Matthew Wilson 1998-04-01 09:04:00 +00:00 committed by Matt Wilson
parent 4553b3c845
commit f992be951f
4 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Wed Apr 01 04:07:29 EST 1998 Matthew Wilson <msw@gimp.org>
* app/disp_callbacks.c: Only destroy the current tool if you change
gdisplays and the tool caches image data.
Wed Apr 01 03:40:15 EST 1998 Matthew Wilson <msw@gimp.org>
* app/disp_callbacks.c: If the current gdisp->ID does not match

View File

@ -150,7 +150,7 @@ gdisplay_canvas_events (GtkWidget *canvas,
/* Reset the current tool if we're changing displays... */
tool_gdisp = active_tool->gdisp_ptr;
if (tool_gdisp)
if (tool_gdisp->ID != gdisp->ID)
if (tool_gdisp->ID != gdisp->ID && !active_tool->preserve)
tools_select(active_tool->type);
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
}

View File

@ -150,7 +150,7 @@ gdisplay_canvas_events (GtkWidget *canvas,
/* Reset the current tool if we're changing displays... */
tool_gdisp = active_tool->gdisp_ptr;
if (tool_gdisp)
if (tool_gdisp->ID != gdisp->ID)
if (tool_gdisp->ID != gdisp->ID && !active_tool->preserve)
tools_select(active_tool->type);
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
}

View File

@ -150,7 +150,7 @@ gdisplay_canvas_events (GtkWidget *canvas,
/* Reset the current tool if we're changing displays... */
tool_gdisp = active_tool->gdisp_ptr;
if (tool_gdisp)
if (tool_gdisp->ID != gdisp->ID)
if (tool_gdisp->ID != gdisp->ID && !active_tool->preserve)
tools_select(active_tool->type);
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
}