[gimp-perl] Run-mode can also be GIMP_RUN_WITH_LAST_VALS.



commit bfa7ac3b68fc9a997fc5d53362d8b762d5fce856
Author: Ed J <edj src gnome org>
Date:   Sun May 4 14:17:02 2014 +0100

    Run-mode can also be GIMP_RUN_WITH_LAST_VALS.

 Gimp/Lib.xs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/Gimp/Lib.xs b/Gimp/Lib.xs
index d506da3..28491da 100644
--- a/Gimp/Lib.xs
+++ b/Gimp/Lib.xs
@@ -1540,8 +1540,11 @@ PPCODE:
        mode parameter */
     args[0].type = params[0].type;
     if (
-      nparams==(items-1) &&
-      (SvIV(ST(1))==GIMP_RUN_INTERACTIVE || SvIV(ST(1))==GIMP_RUN_NONINTERACTIVE)
+      nparams==(items-1) && (
+       SvIV(ST(1))==GIMP_RUN_INTERACTIVE ||
+       SvIV(ST(1))==GIMP_RUN_NONINTERACTIVE ||
+       SvIV(ST(1))==GIMP_RUN_WITH_LAST_VALS
+      )
     ) {
       args->data.d_int32 = SvIV(ST(1)); // ST(0) = proc_name
       j = 2; // because ST(0) is proc_name, ST(1) is runmode


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