]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
don't refresh the current cell in SetCellHighlightROPenWidth() if it's invalid (...
[wxWidgets.git] / src / msw / combobox.cpp
index 2de9a4e10b09ced8f3fdc0233c811e68169778a1..9d8e4a542d7a1740440b2989faf24b0ade5705a7 100644 (file)
@@ -581,10 +581,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))