Commit 78da158e authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

comctl32: treeview: Ensure our textWidth is correct when returning the size of the text box.

parent 4939aa24
......@@ -2033,7 +2033,10 @@ TREEVIEW_GetItemRect(const TREEVIEW_INFO *infoPtr, BOOL fTextRect, LPRECT lpRect
lpRect->bottom = wineItem->rect.bottom;
lpRect->left = wineItem->textOffset;
lpRect->right = wineItem->textOffset + wineItem->textWidth;
if (!wineItem->textWidth)
TREEVIEW_ComputeTextWidth(infoPtr, wineItem, 0);
lpRect->right = wineItem->textOffset + wineItem->textWidth + 4;
}
else
{
......
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