]> git.saurik.com Git - wxWidgets.git/commitdiff
we need to leave some space for static box border even if its label is empty
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Apr 2005 21:15:25 +0000 (21:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Apr 2005 21:15:25 +0000 (21:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbox.cpp

index 6ecb72dff2abe47903214f21f788776d126833ec..ef01a49a6a4841e6fa574910cddc181cef628c3e 100644 (file)
@@ -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
 }