Commit 6b7ccdb7 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

gdiplus: Fix height calculation.

Spotted by Roman Shchekin.
parent 05e18862
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment