-#if 0 // VZ: what is this for?
- int i;
- for (i = 0; i < number; i++)
- m_statusStrings[i] = "";
-#endif
- }
+ int i;
+ for(i = m_nFields; i < number; ++i)
+ m_statusStrings.Add( wxEmptyString );
+
+ // if( number < m_nFields )
+
+ for (i = m_nFields - 1; i >= number; --i)
+ m_statusStrings.Remove(i);
+
+ m_nFields = number;
+
+ wxASSERT_MSG( m_nFields == (int)m_statusStrings.GetCount(),
+ _T("This really should never happen, can we do away with m_nFields here?") );