After an item text changes, the rectangle width should be

recalculated.
oldstable
Gerard Patel 2001-04-09 18:28:47 +00:00 committed by Alexandre Julliard
parent 66ffa17b10
commit f6d3d0172d
1 changed files with 1 additions and 0 deletions

View File

@ -919,6 +919,7 @@ TREEVIEW_DoSetItem(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
/* Do this first in case it fails. */
if (tvItem->mask & TVIF_TEXT)
{
wineItem->textWidth = 0; /* force width recalculation */
if (tvItem->pszText != LPSTR_TEXTCALLBACKA)
{
int len = lstrlenA(tvItem->pszText) + 1;