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