Fix in wxListCtrl::FindItem. Every item is now iterated through, rather than only the first

This commit is contained in:
Liam Treacy
2019-01-24 14:35:47 +00:00
parent 83f23cec89
commit ca00251454

View File

@@ -762,7 +762,7 @@ long wxListCtrl::FindItem(long start, const wxString& str, bool partial)
!partial ? Qt::MatchExactly : Qt::MatchContains );
for (int i=0; i<qitems.length(); i++)
{
ret = m_qtTreeWidget->indexOfTopLevelItem(qitems.at(0));
ret = m_qtTreeWidget->indexOfTopLevelItem(qitems.at(i));
if ( ret >= start )
return ret;
}