Corrected scoping error for i

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2002-07-01 09:42:02 +00:00
parent 76880b8757
commit 893f25f232

View File

@ -112,12 +112,13 @@ void wxStatusBarGeneric::SetFieldsCount(int number, const int *widths)
// if( number > m_nFields )
for( int i = m_nFields; i < number; ++i )
int i;
for(i = m_nFields; i < number; ++i)
m_statusStrings.Add( wxEmptyString );
// if( number < m_nFields )
for (int i = m_nFields - 1; i >= number; --i)
for (i = m_nFields - 1; i >= number; --i)
m_statusStrings.Remove(i);
m_nFields = number;