]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statbox.cpp
removed broken and global GetLine() function from wx/protocol/protocol.h; there's...
[wxWidgets.git] / src / mac / carbon / statbox.cpp
index cb3b47de9080ca6f8c5424ed88aabdd988802076..53dfd546351fe5bf588c804dcef97a56929e3fa9 100644 (file)
@@ -68,7 +68,10 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
         }
     }
 
-    *borderTop = extraTop + GetCharHeight();
+    *borderTop = extraTop;
+    if ( !m_label.empty() )
+        *borderTop += GetCharHeight();
+
     *borderOther = other;
 }