]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/combobox.cpp
use GtkIMContext variable, not GtkIMMulticontext, we don't use functions that take...
[wxWidgets.git] / src / mac / carbon / combobox.cpp
index 6ca5ce57db62b76934edd9a6c3f4a130be74a78b..b1b55589f0fa0a054bd3a50dcb0cdac195ffcafe 100644 (file)
@@ -205,6 +205,8 @@ wxComboBox::~wxComboBox()
 
 wxSize wxComboBox::DoGetBestSize() const
 {
+    if (!m_choice || !m_text)
+        return GetSize();
     wxSize size = m_choice->GetBestSize();
     
     if ( m_text != NULL )