mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 10:20:21 +00:00
Treeview item sorting could mess up the visibleOrder of the items.
This commit is contained in:
parent
1f029ea6f5
commit
cf94bf88c2
|
@ -2791,7 +2791,10 @@ TREEVIEW_Sort(TREEVIEW_INFO *infoPtr, BOOL fRecurse, HTREEITEM parent,
|
|||
{
|
||||
int visOrder = infoPtr->firstVisible->visibleOrder;
|
||||
|
||||
TREEVIEW_RecalculateVisibleOrder(infoPtr, parent);
|
||||
if (parent == infoPtr->root)
|
||||
TREEVIEW_RecalculateVisibleOrder(infoPtr, NULL);
|
||||
else
|
||||
TREEVIEW_RecalculateVisibleOrder(infoPtr, parent);
|
||||
|
||||
if (TREEVIEW_IsChildOf(parent, infoPtr->firstVisible))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue