From a45da55922388dbe04e90b8eb3b9978266a9911b Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 22 Oct 2012 17:50:15 +0900 Subject: [PATCH] gdiplus: Fix a typo leading to incorrect character width calculation in GdipMeasureDriverString. --- dlls/gdiplus/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index d975d3cb852..b2ebf40b7f6 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -6345,7 +6345,7 @@ GpStatus WINGDIPAPI GdipMeasureDriverString(GpGraphics *graphics, GDIPCONST UINT } GetCharABCWidthsW(hdc, glyph_indices[i], glyph_indices[i], &abc); - char_width = abc.abcA + abc.abcB + abc.abcB; + char_width = abc.abcA + abc.abcB + abc.abcC; if (min_y > y - ascent) min_y = y - ascent; if (max_y < y + descent) max_y = y + descent;