comctl32: Do not rearrange treeview when collapsing already collapsed item.
This commit is contained in:
parent
5fa343047f
commit
0ba24895f6
|
@ -3296,6 +3296,8 @@ TREEVIEW_Collapse(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item,
|
|||
TREEVIEW_RemoveAllChildren(infoPtr, item);
|
||||
item->cChildren = old_cChildren;
|
||||
}
|
||||
if (!wasExpanded)
|
||||
return FALSE;
|
||||
|
||||
if (item->firstChild)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue