Skip to content

Commit

Permalink
#3250: Fix TreeModel string comparison function
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jan 16, 2021
1 parent e04a079 commit 90742cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/wxutil/dataview/TreeModel.cpp
Expand Up @@ -811,8 +811,7 @@ int TreeModel::Compare(const wxDataViewItem& item1, const wxDataViewItem& item2,

int TreeModel::CompareStringVariants(const wxVariant& a, const wxVariant& b)
{
wxVariant aName, bName;
return aName.GetString().CmpNoCase(bName.GetString());
return a.GetString().CmpNoCase(b.GetString());
}

int TreeModel::CompareIconTextVariants(const wxVariant& a, const wxVariant& b)
Expand Down

0 comments on commit 90742cc

Please sign in to comment.