Skip to content

Commit

Permalink
cssvalue: Fix the scaling factors for 'smaller' and 'larger'
Browse files Browse the repository at this point in the history
They were reversed. Looks like a bad case of copy/paste failure.
  • Loading branch information
Benjamin Otte committed Dec 1, 2012
1 parent 5942099 commit 1688403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtk/gtkcssenumvalue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 1688403

Please sign in to comment.