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

This commit is contained in:
Daniel Jelinski 2013-08-11 22:25:54 +02:00 committed by Alexandre Julliard
parent 5fa343047f
commit 0ba24895f6
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{