From 10da53a25017db251249c42ed21802cb47c9cafc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Jun 2012 16:33:04 +0000 Subject: [PATCH] Fix vertical offset for wxGTK wxStaticBox without label. Don't use different size for the vertical border in wxStaticBox just because it doesn't have any label, this just doesn't seem necessary and results in different appearance for the static box with and without label. Closes #14430. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/statbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index 56cd02327b..ec1ee9d101 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -156,7 +156,7 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const { const int BORDER = 5; // FIXME: hardcoded value - *borderTop = GetLabel().empty() ? 2*BORDER : GetCharHeight(); + *borderTop = GetCharHeight(); *borderOther = BORDER; }