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:
Jaakko Salli 2008-10-04 13:22:13 +00:00
parent 78e87bf7b8
commit d85423250a

View File

@ -5619,7 +5619,7 @@ void wxPGChoices::RemoveAt(size_t nIndex, size_t count)
for ( i=nIndex; i<(nIndex+count); i++)
delete m_data->Item(i);
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);
}
// -----------------------------------------------------------------------