summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r--pango/pangofc-font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 5a1c30be..870fd935 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -599,8 +599,6 @@ pango_fc_font_get_metrics (PangoFont *font,
if (!in_get_metrics)
{
- in_get_metrics = 1;
-
/* Compute derived metrics */
PangoLayout *layout;
PangoRectangle extents;
@@ -608,6 +606,8 @@ pango_fc_font_get_metrics (PangoFont *font,
PangoFontDescription *desc = pango_font_describe_with_absolute_size (font);
gulong sample_str_width;
+ in_get_metrics = 1;
+
layout = pango_layout_new (context);
pango_layout_set_font_description (layout, desc);
pango_font_description_free (desc);