Correct sorting in wxDataViewTreeStore, fixes #11436, part II
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2006,13 +2006,13 @@ int wxDataViewTreeStore::Compare( const wxDataViewItem &item1, const wxDataViewI
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node1->IsContainer() && !!node2->IsContainer())
|
if (node1->IsContainer() && !node2->IsContainer())
|
||||||
return 1;
|
|
||||||
|
|
||||||
if (node2->IsContainer() && !!node1->IsContainer())
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return parent1->GetChildren().IndexOf( node1 ) - parent1->GetChildren().IndexOf( node2 );
|
if (node2->IsContainer() && !node1->IsContainer())
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
return parent1->GetChildren().IndexOf( node1 ) - parent2->GetChildren().IndexOf( node2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
wxDataViewTreeStoreNode *wxDataViewTreeStore::FindNode( const wxDataViewItem &item ) const
|
wxDataViewTreeStoreNode *wxDataViewTreeStore::FindNode( const wxDataViewItem &item ) const
|
||||||
|
|||||||
Reference in New Issue
Block a user