app: fix error propagation in boolean GUM grouping subexpressions

(cherry picked from commit bbc0f18953)
This commit is contained in:
Ell
2020-06-12 01:33:24 +03:00
parent 50731ea7f8
commit ee01702fae

View File

@ -411,7 +411,10 @@ gimp_prop_eval_boolean_group (GObject *config,
result = gimp_prop_eval_boolean_or (config, pspec,
expr, t, error, depth + 1);
if (! *error && g_strcmp0 (*t, ")"))
if (*error)
return FALSE;
if (g_strcmp0 (*t, ")"))
{
g_set_error (error, GIMP_PROP_EVAL_ERROR, GIMP_PROP_EVAL_FAILED,
"unterminated group");