app: fix error propagation in boolean GUM grouping subexpressions

This commit is contained in:
Ell 2020-06-12 01:33:24 +03:00
parent 5c07bcd1ff
commit bbc0f18953
1 changed files with 4 additions and 1 deletions

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");