[gtk+] cssvalue: Fix the scaling factors for 'smaller' and 'larger'



commit 1688403ae6105d7c1f16d19c2775071418e92b85
Author: Benjamin Otte <otte redhat com>
Date:   Sat Dec 1 16:23:08 2012 +0100

    cssvalue: Fix the scaling factors for 'smaller' and 'larger'
    
    They were reversed. Looks like a bad case of copy/paste failure.

 gtk/gtkcssenumvalue.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssenumvalue.c b/gtk/gtkcssenumvalue.c
index f91ba88..e1f1d1c 100644
--- a/gtk/gtkcssenumvalue.c
+++ b/gtk/gtkcssenumvalue.c
@@ -203,7 +203,7 @@ gtk_css_value_font_size_compute (GtkCssValue             *value,
       else
         font_size = _gtk_css_font_size_get_default (provider);
       /* XXX: This is what WebKit does... */
-      font_size *= 1.2;
+      font_size /= 1.2;
       break;
     case GTK_CSS_FONT_SIZE_LARGER:
       *dependencies = GTK_CSS_DEPENDS_ON_PARENT;
@@ -212,7 +212,7 @@ gtk_css_value_font_size_compute (GtkCssValue             *value,
       else
         font_size = _gtk_css_font_size_get_default (provider);
       /* XXX: This is what WebKit does... */
-      font_size /= 1.2;
+      font_size *= 1.2;
       break;
   }
 



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