forked from AuroraMiddleware/gtk
Fix message for VFL parser errors
The loop is iterating over the wrong variable, and it's reimplementing g_strfill() in a less efficient way.
This commit is contained in:
parent
8742d42f32
commit
7de62118a0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user