mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 04:18:09 +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;
|
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))
|
if (TREEVIEW_IsChildOf(parent, infoPtr->firstVisible))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user