From: Jaakko Salli Date: Fri, 11 Dec 2009 15:50:04 +0000 (+0000) Subject: Fixed incorrect use of RemoveAt() in wxPropertyGridPageState::SetColumnCount() (fixes... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9dac189e7289c784c3469b31fd8c29c065bcf1fb?ds=inline Fixed incorrect use of RemoveAt() in wxPropertyGridPageState::SetColumnCount() (fixes #11539) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/propgridpagestate.cpp b/src/propgrid/propgridpagestate.cpp index 7eb91e6ac1..6736b69c3a 100644 --- a/src/propgrid/propgridpagestate.cpp +++ b/src/propgrid/propgridpagestate.cpp @@ -1094,7 +1094,8 @@ void wxPropertyGridPageState::SetColumnCount( int colCount ) wxASSERT( colCount >= 2 ); m_colWidths.SetCount( colCount, wxPG_DRAG_MARGIN ); if ( m_colWidths.size() > (unsigned int)colCount ) - m_colWidths.RemoveAt( m_colWidths.size(), m_colWidths.size() - colCount ); + m_colWidths.RemoveAt( m_colWidths.size()-1, + m_colWidths.size() - colCount ); if ( m_pPropGrid->GetState() == this ) m_pPropGrid->RecalculateVirtualSize();