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:
parent
76880b8757
commit
893f25f232
@ -112,12 +112,13 @@ void wxStatusBarGeneric::SetFieldsCount(int number, const int *widths)
|
|||||||
|
|
||||||
// if( number > m_nFields )
|
// 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 );
|
m_statusStrings.Add( wxEmptyString );
|
||||||
|
|
||||||
// if( number < m_nFields )
|
// 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_statusStrings.Remove(i);
|
||||||
|
|
||||||
m_nFields = number;
|
m_nFields = number;
|
||||||
|
Loading…
Reference in New Issue
Block a user