[gimp/gimp-2-10] app: fix reference parsing in boolean GUM expressions



commit 50731ea7f8a873fcb372905de0afe3d27fa2c246
Author: Ell <ell_se yahoo com>
Date:   Fri Jun 12 01:26:50 2020 +0300

    app: fix reference parsing in boolean GUM expressions
    
    (cherry picked from commit 5c07bcd1ff7e8783e43d95bc5715738b8a1abea4)

 app/propgui/gimppropgui-eval.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/propgui/gimppropgui-eval.c b/app/propgui/gimppropgui-eval.c
index 940a9a9eb0..308eeb2a15 100644
--- a/app/propgui/gimppropgui-eval.c
+++ b/app/propgui/gimppropgui-eval.c
@@ -453,10 +453,14 @@ gimp_prop_eval_boolean_simple (GObject      *config,
   if (! strcmp (*t, "0"))
     {
       result = FALSE;
+
+      gimp_prop_eval_read_token (expr, t, error);
     }
   else if (! strcmp (*t, "1"))
     {
       result = TRUE;
+
+      gimp_prop_eval_read_token (expr, t, error);
     }
   /* reference */
   else if (! strcmp (*t, "$"))
@@ -600,6 +604,8 @@ gimp_prop_eval_boolean_simple (GObject      *config,
 
           return FALSE;
         }
+
+      gimp_prop_eval_read_token (expr, t, error);
     }
   else
     {
@@ -609,8 +615,6 @@ gimp_prop_eval_boolean_simple (GObject      *config,
       return FALSE;
     }
 
-  gimp_prop_eval_read_token (expr, t, error);
-
   return result;
 }
 


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