X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e976429dfade9fe445d1d5abf630e9458d51abbe..37ed592f7106e4ba483baa6fba91a9c481048bbc:/src/gtk/combobox.cpp diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 3e3429f1fa..0ad836e685 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -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))