[gtk+] cssvalue: Print an error when failing to parse background-position



commit a81ccff4f5988c1154207d0522c1f9b395f20570
Author: Benjamin Otte <otte redhat com>
Date:   Fri Oct 12 17:36:28 2012 +0200

    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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcsspositionvalue.c b/gtk/gtkcsspositionvalue.c
index 6f33de7..09c845d 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++)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]