[gimp] Issue #7890: Filter commands Repeat and Re-show last plug-in don't…



commit 26a3a600e3fb0fa519b1b90ea24ddb5b8b786efb
Author: Jehan <jehan girinstud io>
Date:   Thu Jul 21 01:20:33 2022 +0200

    Issue #7890: Filter commands Repeat and Re-show last plug-in don't…
    
    … work when no image is loaded.

 app/actions/filters-commands.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/actions/filters-commands.c b/app/actions/filters-commands.c
index c322b96d3e..1122b6974d 100644
--- a/app/actions/filters-commands.c
+++ b/app/actions/filters-commands.c
@@ -136,20 +136,20 @@ filters_repeat_cmd_callback (GimpAction *action,
                              GVariant   *value,
                              gpointer    data)
 {
-  GimpImage     *image;
-  GimpDrawable  *drawable;
+  Gimp          *gimp;
   GimpDisplay   *display;
   GimpProcedure *procedure;
   GimpRunMode    run_mode;
-  return_if_no_drawable (image, drawable, data);
+
+  return_if_no_gimp (gimp, data);
   return_if_no_display (display, data);
 
   run_mode = (GimpRunMode) g_variant_get_int32 (value);
 
-  procedure = gimp_filter_history_nth (image->gimp, 0);
+  procedure = gimp_filter_history_nth (gimp, 0);
 
   if (procedure)
-    filters_run_procedure (image->gimp, display, procedure, run_mode);
+    filters_run_procedure (gimp, display, procedure, run_mode);
 }
 
 void


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