Commit cf94bf88 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Treeview item sorting could mess up the visibleOrder of the items.

parent 1f029ea6
......@@ -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))
{
......
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