check for event != NULL to avoid crashing when the cell is activated using

2003-03-28  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcellrenderertoggle.c
	(gimp_cell_renderer_toggle_activate): check for event != NULL to
	avoid crashing when the cell is activated using the keyboard.
This commit is contained in:
Sven Neumann
2003-03-28 08:21:47 +00:00
committed by Sven Neumann
parent 4e3b31e989
commit bc9ef72c45
4 changed files with 22 additions and 2 deletions

View File

@ -417,7 +417,7 @@ gimp_cell_renderer_toggle_activate (GtkCellRenderer *cell,
celltoggle = GTK_CELL_RENDERER_TOGGLE (cell);
if (celltoggle->activatable)
if (celltoggle->activatable && event)
{
GdkModifierType state = 0;