From 6b7ccdb734bebda64f5a71a5d087645cd4a110cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Thu, 22 Sep 2011 19:21:41 +0200 Subject: [PATCH] gdiplus: Fix height calculation. Spotted by Roman Shchekin. --- 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 7fcff02682b..50d2f7ce072 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -4329,7 +4329,7 @@ GpStatus gdip_format_string(HDC hdc, nheight = roundr(rect->Height); if (rect->Width >= INT_MAX || rect->Width < 0.5) nwidth = INT_MAX; - if (rect->Height >= INT_MAX || rect->Width < 0.5) nheight = INT_MAX; + if (rect->Height >= INT_MAX || rect->Height < 0.5) nheight = INT_MAX; for(i = 0, j = 0; i < length; i++){ /* FIXME: This makes the indexes passed to callback inaccurate. */