[pango/trivial-pre-c99-fix: 4/4] pangofc-font.c: Trivial fix on pre-C99 compilers
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/trivial-pre-c99-fix: 4/4] pangofc-font.c: Trivial fix on pre-C99 compilers
- Date: Mon, 15 Jul 2019 11:47:30 +0000 (UTC)
commit 1bbc591269ea4693665ecead7a9592ed4372a091
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jul 15 19:08:28 2019 +0800
pangofc-font.c: Trivial fix on pre-C99 compilers
Make sure we declare variables at the top of the block.
pango/pangofc-font.c | 4 ++--
1 file 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]