Fixed use of erase() in wxPGChoices::RemoveAt()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
78e87bf7b8
commit
d85423250a
@ -5619,7 +5619,7 @@ void wxPGChoices::RemoveAt(size_t nIndex, size_t count)
|
|||||||
for ( i=nIndex; i<(nIndex+count); i++)
|
for ( i=nIndex; i<(nIndex+count); i++)
|
||||||
delete m_data->Item(i);
|
delete m_data->Item(i);
|
||||||
m_data->m_items.erase(m_data->m_items.begin()+nIndex,
|
m_data->m_items.erase(m_data->m_items.begin()+nIndex,
|
||||||
m_data->m_items.begin()+nIndex+count-1);
|
m_data->m_items.begin()+nIndex+count);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user