]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed incorrect use of RemoveAt() in wxPropertyGridPageState::SetColumnCount() (fixes...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Fri, 11 Dec 2009 15:50:04 +0000 (15:50 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Fri, 11 Dec 2009 15:50:04 +0000 (15:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgridpagestate.cpp

index 7eb91e6ac14323616c89cb2f365476bd75f20748..6736b69c3aab2c950e63beed5578fba2c7f93f02 100644 (file)
@@ -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();