diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-07-15 19:08:28 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-07-15 19:45:03 +0800 |
commit | 1bbc591269ea4693665ecead7a9592ed4372a091 (patch) | |
tree | c94ca508b37c672c264233e200a8214bfe5e1405 /pango/pangofc-font.c | |
parent | dde5d513213c7f778f3bc762bb098f2fee41fe17 (diff) | |
download | pango-1bbc591269ea4693665ecead7a9592ed4372a091.tar.gz |
pangofc-font.c: Trivial fix on pre-C99 compilers
Make sure we declare variables at the top of the block.
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r-- | pango/pangofc-font.c | 4 |
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); |