wx sorted containers don't implement iterators so use indices to iterate over
wxDataViewMainWindow::m_selection, just as r68613 already did in another place.
Closes #13388.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68651
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxDataViewSelection newsel(wxDataViewSelectionCmp);
- for ( wxDataViewSelection::const_iterator i = m_selection.begin();
- i != m_selection.end();
- ++i )
+ const size_t numSelections = m_selection.size();
+ for ( size_t i = 0; i < numSelections; ++i )
{
- const int s = *i;
+ const int s = m_selection[i];
if ( s < itemRow )
newsel.push_back(s);
else if ( s >= itemRow + itemsDeleted )