X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de0d209531f148e8d4b18149d0a3ca25dbc88075..ec2df34e27ba41f202ecbf096cdfed082a9ddb8f:/src/osx/carbon/statbrma.cpp diff --git a/src/osx/carbon/statbrma.cpp b/src/osx/carbon/statbrma.cpp index 3898d12d56..3a89df132d 100644 --- a/src/osx/carbon/statbrma.cpp +++ b/src/osx/carbon/statbrma.cpp @@ -102,19 +102,8 @@ void wxStatusBarMac::DrawField(wxDC& dc, int i, int textHeight) DrawFieldText(dc, rect, i, textHeight); } -void wxStatusBarMac::SetStatusText(const wxString& text, int number) +void wxStatusBarMac::DoUpdateStatusText(int number) { - // NOTE: seems this function is identic to wxStatusBarGeneric::SetStatusText; - // probably can be removed without problems (FM) - - wxCHECK_RET( (number >= 0) && ((size_t)number < m_panes.GetCount()), - wxT("invalid status bar field index") ); - - if ( GetStatusText(number) == text ) - return; - - wxStatusBarGeneric::SetStatusText(text, number); - wxRect rect; GetFieldRect(number, rect); @@ -125,7 +114,11 @@ void wxStatusBarMac::SetStatusText(const wxString& text, int number) rect.height = h ; Refresh( true, &rect ); + // we should have to force the update here + // TODO Remove if no regressions occur +#if 0 Update(); +#endif } void wxStatusBarMac::OnPaint(wxPaintEvent& WXUNUSED(event))