]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbox.cpp
Fix vertical offset for wxGTK wxStaticBox without label.
[wxWidgets.git] / src / gtk / statbox.cpp
index 56cd02327be62225ca664c7e0ef1bed8693dc104..ec1ee9d101a6f702544f3e42fb5e7037333a01b0 100644 (file)
@@ -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;
 }