From a81ccff4f5988c1154207d0522c1f9b395f20570 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 12 Oct 2012 17:36:28 +0200 Subject: cssvalue: Print an error when failing to parse background-position ... in the case where a completely invalid value was used. --- gtk/gtkcsspositionvalue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk/gtkcsspositionvalue.c') diff --git a/gtk/gtkcsspositionvalue.c b/gtk/gtkcsspositionvalue.c index 6f33de73a1..09c845d2fc 100644 --- a/gtk/gtkcsspositionvalue.c +++ b/gtk/gtkcsspositionvalue.c @@ -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++) -- cgit v1.2.1