]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
use generic wxAnimationCtrl in wxGTK-universal
[wxWidgets.git] / src / gtk / combobox.cpp
index 32123f67cc985df473d1772921aa980cb3d97cfa..1f39a8f9ad47b04584e4301673327b793f88c562 100644 (file)
@@ -190,6 +190,9 @@ gtkcombobox_changed_callback( GtkWidget *WXUNUSED(widget), wxComboBox *combo )
 
     if (!combo->m_hasVMT) return;
 
+    if (combo->GetSelection() == -1)
+        return;
+
     wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, combo->GetId() );
     event.SetInt( combo->GetSelection() );
     event.SetString( combo->GetStringSelection() );