diff --git a/docs/changes.txt b/docs/changes.txt index 900532ef5b..9e3d090e2c 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -88,6 +88,13 @@ Major new features in 2.8 release wxSearchCtrl, wxAboutBox, wxTreebook, tar streams. +2.8.3 +----- + +wxMac + +- Corrected top border size for wxStaticBox with empty label (nusi) + 2.8.2 ----- diff --git a/src/mac/carbon/statbox.cpp b/src/mac/carbon/statbox.cpp index cb3b47de90..53dfd54635 100644 --- a/src/mac/carbon/statbox.cpp +++ b/src/mac/carbon/statbox.cpp @@ -68,7 +68,10 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const } } - *borderTop = extraTop + GetCharHeight(); + *borderTop = extraTop; + if ( !m_label.empty() ) + *borderTop += GetCharHeight(); + *borderOther = other; }