check for gdisp != NULL to avoid to crash when being called from

2002-12-03  Sven Neumann  <sven@gimp.org>

	* app/tools/tool_manager.c (tool_manager_control_active): check
	for gdisp != NULL to avoid to crash when being called from
	indexed_ok_callback().
This commit is contained in:
Sven Neumann 2002-12-03 11:31:15 +00:00 committed by Sven Neumann
parent d88c11811a
commit 1c60f4e045
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-12-03 Sven Neumann <sven@gimp.org>
* app/tools/tool_manager.c (tool_manager_control_active): check
for gdisp != NULL to avoid to crash when being called from
indexed_ok_callback().
2002-12-03 Sven Neumann <sven@gimp.org>
* configure.in: do as the gtk+ folks did and replace the gtk-doc

View File

@ -313,7 +313,7 @@ tool_manager_control_active (Gimp *gimp,
if (! tool_manager->active_tool)
return;
if (tool_manager->active_tool->gdisp == gdisp)
if (gdisp && tool_manager->active_tool->gdisp == gdisp)
{
gimp_tool_control (tool_manager->active_tool,
action,