Commit 5d282ec6 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Use height from font metrics for empty text runs in TabbedTextOut().

parent ccb89fc6
......@@ -1385,7 +1385,9 @@ static LONG TEXT_TabbedTextOut( HDC hdc, INT x, INT y, LPCWSTR lpstr,
}
} else
x += extent.cx;
if (!extent.cy) extent.cy = tm.tmHeight;
if (fDisplayText)
{
r.top = y;
......@@ -1398,9 +1400,6 @@ static LONG TEXT_TabbedTextOut( HDC hdc, INT x, INT y, LPCWSTR lpstr,
lpstr += j;
}
if(!extent.cy)
extent.cy = tm.tmHeight;
return MAKELONG(x - start, extent.cy);
}
......
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