]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/spinctrl.cpp
fixed warnings after GetFont prototype change
[wxWidgets.git] / src / mac / carbon / spinctrl.cpp
index 3316f6a92e93ab16d3c08f4be90105ec3b9f8de8..b006866a06f5865a9a52f755ae994ae248d66c5e 100644 (file)
@@ -196,6 +196,9 @@ wxSpinCtrl::~wxSpinCtrl()
 
 wxSize wxSpinCtrl::DoGetBestSize() const
 {
+    if (!m_btn || !m_text)
+        return GetSize();
+    
     wxSize sizeBtn = m_btn->GetBestSize(),
            sizeText = m_text->GetBestSize();