X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b6fefbed1ef1cb879b72950d9f8fa35da128827..e81c7155869a701afe700d1d41a26de9acfda80e:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 72ac77fdcc..77616a02f1 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -176,24 +176,9 @@ void wxStatusBarGeneric::SetStatusWidths(int n, const int widths_field[]) // only set status widths when n == number of statuswindows wxCHECK_RET( (size_t)n == m_panes.GetCount(), _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) - // MBN: this is incompatible with at least wxMSW and wxMAC and not - // documented, but let's keep it for now - m_bSameWidthForAllPanes = true; - // FM: what MBN's comment is saying is that allowing widths_field = NULL - // only for wxStatusBarGeneric is not documented... - // forget the old cached pixel widths m_widthsAbs.Empty(); - if ( !widths_field ) - { - // not an error, see the comment above - Refresh(); - return; - } - wxStatusBarBase::SetStatusWidths(n, widths_field); }