Merge branch 'vfl-error' into 'master'

Fix message for VFL parser errors

See merge request GNOME/gtk!1514
This commit is contained in:
Matthias Clasen 2020-03-11 15:56:46 +00:00
commit ff0909f366

View File

@ -2016,14 +2016,7 @@ gtk_constraint_layout_add_constraints_from_descriptionv (GtkConstraintLayout *la
char *squiggly = NULL;
if (range > 0)
{
squiggly = g_new (char, range + 1);
for (int r = 0; r < range; i++)
squiggly[r] = '~';
squiggly[range] = '\0';
}
squiggly = g_strnfill (range, '~');
g_set_error (error, GTK_CONSTRAINT_VFL_PARSER_ERROR,
internal_error->code,