[gimp/gimp-2-6] Bug 587543 – crash in GNU Image Manipulation Program: Pressing shift+-



commit 4f12de2814284cce54b09a035f8aec039f85d4a8
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 c321eca..cd1c135 100644
--- a/app/widgets/gimppluginaction.c
+++ b/app/widgets/gimppluginaction.c
@@ -164,7 +164,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]