diff --git a/docs/changes.txt b/docs/changes.txt index 5884794624..fa3decc304 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -56,6 +56,13 @@ wxMSW: - Return the restored window size from GetSize() when window is minimized. +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; }