[gimp] Bug 587543 – crash in GNU Image Manipulation Program: Pressing shift+-
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Bug 587543 – crash in GNU Image Manipulation Program: Pressing shift+-
- Date: Wed, 1 Jul 2009 19:48:30 +0000 (UTC)
commit f07d89de2aafdc3f1e28f87017cfcb6ede2f2791
Author: Martin Nordholts <martinn src gnome org>
Date: Wed Jul 1 21:45:33 2009 +0200
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
app/widgets/gimppluginaction.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimppluginaction.c b/app/widgets/gimppluginaction.c
index b791dd3..7eaaa57 100644
--- a/app/widgets/gimppluginaction.c
+++ b/app/widgets/gimppluginaction.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]