Bug 587543 – crash in GNU Image Manipulation Program: Pressing shift+-

Not all actions have procedures associated with them, for example
unused "plug-in-recent-[N]" actions, so check for NULL before we
invoke the plug-in action
This commit is contained in:
Martin Nordholts 2009-07-01 21:45:33 +02:00
parent 7df1c1fc9d
commit f07d89de2a
1 changed files with 6 additions and 1 deletions

View File

@ -163,7 +163,12 @@ gimp_plug_in_action_activate (GtkAction *action)
{
GimpPlugInAction *plug_in_action = GIMP_PLUG_IN_ACTION (action);
gimp_plug_in_action_selected (plug_in_action, plug_in_action->procedure);
/* Not all actions have procedures associated with them, for example
* unused "plug-in-recent-[N]" actions, so check for NULL before we
* invoke the plug-in action
*/
if (plug_in_action->procedure)
gimp_plug_in_action_selected (plug_in_action, plug_in_action->procedure);
}
static void