]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
remove needless casting (no real change)
[wxWidgets.git] / src / gtk / combobox.cpp
index 3e3429f1faeb52696edbbc4324d15b9f2343cf6c..0ad836e685034143b84072119c68215ce7795fc3 100644 (file)
@@ -493,10 +493,7 @@ void wxComboBox::OnRedo(wxCommandEvent& WXUNUSED(event))
 
 void wxComboBox::OnDelete(wxCommandEvent& WXUNUSED(event))
 {
-    long from, to;
-    GetSelection(& from, & to);
-    if (from != -1 && to != -1)
-        Remove(from, to);
+    RemoveSelection();
 }
 
 void wxComboBox::OnSelectAll(wxCommandEvent& WXUNUSED(event))