]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/choice_osx.cpp
pusing a dummy event, to make sure the stop: succeeds in immediate runloop terminatio...
[wxWidgets.git] / src / osx / choice_osx.cpp
index f303ec637c3f120c54ffada386daea4548bf7b57..966974de067a369fb6697de8f8eaa0d71114df0d 100644 (file)
@@ -126,7 +126,10 @@ int wxChoice::DoInsertItems(const wxArrayStringsAdapter & items,
             m_strings.Insert( items[i], idx );
         }
 
-        m_popUpMenu->Insert( idx, i+1, items[i] );
+        wxString text = items[i];
+        if (text == wxEmptyString)
+            text = " ";  // menu items can't have empty labels
+        m_popUpMenu->Insert( idx, i+1, text );
         m_datas.Insert( NULL, idx );
         AssignNewItemClientData(idx, clientData, i, type);
     }