X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fa2dd0eb9a1d39f0e0f84088a6822858fcce4c6..6cef0db28018fd2644ee4e38af715872e5242459:/src/mac/carbon/statbox.cpp?ds=sidebyside diff --git a/src/mac/carbon/statbox.cpp b/src/mac/carbon/statbox.cpp index 53dfd54635..398fc5fcb2 100644 --- a/src/mac/carbon/statbox.cpp +++ b/src/mac/carbon/statbox.cpp @@ -32,7 +32,7 @@ bool wxStaticBox::Create( wxWindow *parent, if ( !wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ) ) return false; - m_label = label; + m_labelOrig = m_label = label; Rect bounds = wxMacGetBoundsForControl( this, pos, size ); @@ -58,14 +58,11 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const // Later on, the staticbox's font height is added to this. extraTop = 0; - if ( UMAGetSystemVersion() >= 0x1030 ) // Panther - { - // As indicated by the HIG, Panther needs an extra border of 11 - // pixels (otherwise overlapping occurs at the top). The "other" - // border has to be 11. - extraTop = 11; - other = 11; - } + // As indicated by the HIG, Panther needs an extra border of 11 + // pixels (otherwise overlapping occurs at the top). The "other" + // border has to be 11. + extraTop = 11; + other = 11; } *borderTop = extraTop;