Commit 0ba24895 authored by Daniel Jelinski's avatar Daniel Jelinski Committed by Alexandre Julliard

comctl32: Do not rearrange treeview when collapsing already collapsed item.

parent 5fa34304
......@@ -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)
{
......
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