[gimp/gimp-2-8] app: treat an empty ("" not NULL) plug-in proc_install->menu_path as NULL



commit d12eb70baeea14680fc671165d6389511279955d
Author: Michael Natterer <mitch gimp org>
Date:   Sun Oct 20 18:22:47 2013 +0200

    app: treat an empty ("" not NULL) plug-in proc_install->menu_path as NULL
    
    gimp_plug_in_handle_proc_install(): don't set the new procedure's menu
    path nor its menu label if proc_install->menu_path is "", so we don't
    run into action and menu creating confusion later. Do it here and not
    later so the "" string never enters the system.
    
    (cherry picked from commit 6e3495ff6969c2c35458292c7ff76fa72913b851)

 app/plug-in/gimpplugin-message.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/plug-in/gimpplugin-message.c b/app/plug-in/gimpplugin-message.c
index a144519..d2c0f0d 100644
--- a/app/plug-in/gimpplugin-message.c
+++ b/app/plug-in/gimpplugin-message.c
@@ -830,7 +830,7 @@ gimp_plug_in_handle_proc_install (GimpPlugIn    *plug_in,
 
   /*  Sanity check menu path  */
 
-  if (proc_install->menu_path)
+  if (proc_install->menu_path && strlen (proc_install->menu_path))
     {
       if (proc_install->menu_path[0] == '<')
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]