cssvalue: Print an error when failing to parse background-position

... in the case where a completely invalid value was used.
This commit is contained in:
Benjamin Otte 2012-10-12 17:36:28 +02:00
parent 661f0f547b
commit a81ccff4f5

View File

@ -224,7 +224,10 @@ _gtk_css_position_value_parse (GtkCssParser *parser)
return NULL;
}
else
return NULL;
{
_gtk_css_parser_error (parser, "Unrecognized position value");
return NULL;
}
}
for (second = 0; names[second].name != NULL; second++)