]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grideditors.cpp
Use SelectAll() instead of SetSelection(-1, -1).
[wxWidgets.git] / src / generic / grideditors.cpp
index fabd2b92275e9f1ccbc38a9890334cb6733dd182..36e067e9a631695e75fe1034dbdf83aa4c09cdd8 100644 (file)
@@ -496,7 +496,7 @@ void wxGridCellTextEditor::DoBeginEdit(const wxString& startValue)
 {
     Text()->SetValue(startValue);
     Text()->SetInsertionPointEnd();
-    Text()->SetSelection(-1, -1);
+    Text()->SelectAll();
     Text()->SetFocus();
 }