]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 675376 ] Improves wxStaticBoxSizer
authorJulian Smart <julian@anthemion.co.uk>
Sun, 2 Feb 2003 14:58:56 +0000 (14:58 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 2 Feb 2003 14:58:56 +0000 (14:58 +0000)
(uses GetCharHeight() instead of guessing).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sizer.cpp

index dfe492531dff16e4ab2c88c23de567970ab1bab4..9e430cdb84bcbe1418c59dc14194bafda8279840 100644 (file)
@@ -1419,8 +1419,8 @@ static void GetStaticBoxBorders( wxStaticBox *box,
         *borderTop = 5;
     else
 #endif // __WXGTK__
         *borderTop = 5;
     else
 #endif // __WXGTK__
-        *borderTop = 15;
-    (void)box;
+        *borderTop = box->GetCharHeight();
+
     *borderOther = 5;
 }
 
     *borderOther = 5;
 }