diff --git a/app/plug-in/gimpplugindebug.c b/app/plug-in/gimpplugindebug.c index 81c1060581..39740c216f 100644 --- a/app/plug-in/gimpplugindebug.c +++ b/app/plug-in/gimpplugindebug.c @@ -120,7 +120,12 @@ gimp_plug_in_debug_argv (GimpPlugInDebug *debug, basename = g_path_get_basename (name); - if (!(debug->flags & flag) || (strcmp (debug->name, basename) != 0)) + /* Return NULL when flags don't match OR + * (targeted plugin is not "all" AND targeted plugin not match passed filename ) + */ + if (!(debug->flags & flag) || + ((strcmp (debug->name, basename) != 0) && + (strcmp (debug->name, "all") != 0))) { g_free (basename); return NULL;