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:
@@ -2108,11 +2108,10 @@ bool wxDataViewMainWindow::ItemDeleted(const wxDataViewItem& parent,
|
|||||||
|
|
||||||
wxDataViewSelection newsel(wxDataViewSelectionCmp);
|
wxDataViewSelection newsel(wxDataViewSelectionCmp);
|
||||||
|
|
||||||
for ( wxDataViewSelection::const_iterator i = m_selection.begin();
|
const size_t numSelections = m_selection.size();
|
||||||
i != m_selection.end();
|
for ( size_t i = 0; i < numSelections; ++i )
|
||||||
++i )
|
|
||||||
{
|
{
|
||||||
const int s = *i;
|
const int s = m_selection[i];
|
||||||
if ( s < itemRow )
|
if ( s < itemRow )
|
||||||
newsel.push_back(s);
|
newsel.push_back(s);
|
||||||
else if ( s >= itemRow + itemsDeleted )
|
else if ( s >= itemRow + itemsDeleted )
|
||||||
|
Reference in New Issue
Block a user