After an item text changes, the rectangle width should be
recalculated.
This commit is contained in:
parent
66ffa17b10
commit
f6d3d0172d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue