From 3f05da638c8d7b13e7f860aeda1a6321e5ebd92e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 30 Nov 2007 04:29:58 +0000 Subject: [PATCH] =?utf8?q?Bug=20485536=20=E2=80=93=20underline=5Fposition?= =?utf8?q?=20can=20be=20zero?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2007-11-29 Behdad Esfahbod Bug 485536 – underline_position can be zero * pango/pango-utils.c (pango_cairo_quantize_line_geometry): Document that returned position may be zero. * pango/pangocairo-win32font.c (pango_cairo_win32_font_create_metrics_for_context): * pango/pangofc-font.c (get_face_metrics): Handle case of underline_position==0 after rounding. --- src/harfbuzz-impl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/harfbuzz-impl.c b/src/harfbuzz-impl.c index 79b837d..4ba70ed 100644 --- a/src/harfbuzz-impl.c +++ b/src/harfbuzz-impl.c @@ -65,5 +65,7 @@ _hb_free( HB_Pointer block ) HB_INTERNAL HB_Error _hb_err (HB_Error code) { + static int numerr = 0; + numerr++; return code; } -- 2.7.4