int fields = GetLong(wxT("fields"), 1);
wxString widths = GetParamValue(wxT("widths"));
- if(fields > 1)
+ if (fields > 1 && !widths.IsEmpty())
{
int *width = new int[fields];
statbar->SetFieldsCount(fields, width);
delete[] width;
}
+ else
+ statbar->SetFieldsCount(fields);
if (m_parentAsWindow)
{