[gtk+] Fix parsing of font-weight



commit 04737364992dff8e6ca555d0b3ddc7bd1a9cf8ea
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 20 17:51:47 2015 -0500

    Fix parsing of font-weight
    
    The parser was turning a 400 into a 200 and a 700 into a 500.

 gtk/gtkcssenumvalue.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssenumvalue.c b/gtk/gtkcssenumvalue.c
index c606f0b..f8828ec 100644
--- a/gtk/gtkcssenumvalue.c
+++ b/gtk/gtkcssenumvalue.c
@@ -481,9 +481,9 @@ _gtk_css_font_weight_value_try_parse (GtkCssParser *parser)
     }
   /* special cases go here */
   if (_gtk_css_parser_try (parser, "400", TRUE))
-    return _gtk_css_value_ref (&font_weight_values[3]);
+    return _gtk_css_value_ref (&font_weight_values[5]);
   if (_gtk_css_parser_try (parser, "700", TRUE))
-    return _gtk_css_value_ref (&font_weight_values[6]);
+    return _gtk_css_value_ref (&font_weight_values[8]);
 
   return NULL;
 }


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