Skip to content

Commit

Permalink
Update Compare to not force containers first
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Oct 13, 2023
1 parent c180370 commit 7b648cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2073,13 +2073,13 @@ int wxMetroDataViewTreeStore::Compare(const wxDataViewItem& item1, const wxDataV

wxCHECK_MSG(node2->GetParent() == parent, 0,
wxS("Comparing items with different parent."));

/*
if (node1->IsContainer() && !node2->IsContainer())
return -1;
if (node2->IsContainer() && !node1->IsContainer())
return 1;

*/
wxMetroDataViewTreeStoreNodes::const_iterator iter;
for (iter = parent->GetChildren().begin(); iter != parent->GetChildren().end(); ++iter)
{
Expand Down

0 comments on commit 7b648cc

Please sign in to comment.