- // only set status widths, when n == number of statuswindows
- if (n == m_nFields)
- {
- // only set status widths,
+ // only set status widths, when n == number of statuswindows
+ wxCHECK_RET( n == m_nFields, _T("status bar field count mismatch") );
+
+ // delete the old widths in any case - this function may be used to reset
+ // the widths to the default (all equal)
+ delete [] m_statusWidths;
+
+ if ( !widths_field )
+ {
+ // not an error, see the comment above
+ m_statusWidths = (int *)NULL;
+
+ return;
+ }
+
+ int i;
+
+ // VZ: this doesn't do anything as is_variable is unused later
+#if 0