mirror of https://github.com/GNOME/gimp.git
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:
parent
d88c11811a
commit
1c60f4e045
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue