From: Julian Smart Date: Sun, 2 Feb 2003 14:58:56 +0000 (+0000) Subject: Applied patch [ 675376 ] Improves wxStaticBoxSizer X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f2b99f6323a9efded58df1824a39d83390aa8c78 Applied patch [ 675376 ] Improves wxStaticBoxSizer (uses GetCharHeight() instead of guessing). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index dfe492531d..9e430cdb84 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -1419,8 +1419,8 @@ static void GetStaticBoxBorders( wxStaticBox *box, *borderTop = 5; else #endif // __WXGTK__ - *borderTop = 15; - (void)box; + *borderTop = box->GetCharHeight(); + *borderOther = 5; }