Fix compilation of generic wxDVC code when not using STL containers.
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
This commit is contained in:
parent
f795e58659
commit
3823a15e2c
@ -2108,11 +2108,10 @@ bool wxDataViewMainWindow::ItemDeleted(const wxDataViewItem& parent,
|
||||
|
||||
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 )
|
||||
|
Loading…
Reference in New Issue
Block a user