Do not keep the handle of a deleted item as the selectedItem..
This commit is contained in:
parent
f158f541dd
commit
ede9881523
|
@ -838,6 +838,8 @@ TREEVIEW_FreeItem(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item)
|
|||
{
|
||||
DPA_DeletePtr(infoPtr->items, DPA_GetPtrIndex(infoPtr->items, item));
|
||||
COMCTL32_Free(item);
|
||||
if (infoPtr->selectedItem == item)
|
||||
infoPtr->selectedItem = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue