From: Vadim Zeitlin Date: Tue, 5 Apr 2005 21:15:25 +0000 (+0000) Subject: we need to leave some space for static box border even if its label is empty X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8397b2f7a98e25b5bcc500c40343d36b2d2e24a7 we need to leave some space for static box border even if its label is empty git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index 6ecb72dff2..ef01a49a6a 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -198,8 +198,7 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const // calculations, we need to add some extra margin or otherwise static box // title is clipped #if !wxDIALOG_UNIT_COMPATIBILITY - if ( !GetLabel().empty() ) - *borderTop += GetCharHeight()/3; + *borderTop += GetCharHeight()/3; #endif // !wxDIALOG_UNIT_COMPATIBILITY }