From 42b4e5cd2a59e1080543dcc269c4f24c41352279 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 13 Nov 2010 15:03:33 +0000 Subject: [PATCH] Don't put cursor at the end of wxGridCellEnumEditor control. Putting the cursor to the end of the control when the editing starts doesn't make much sense as this should be the default behaviour anyhow and, worse, this results in an assert under wxMSW where a read-only wxComboBox doesn't have any cursor to move. Closes #12446. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grideditors.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/generic/grideditors.cpp b/src/generic/grideditors.cpp index 620130e596..57f01972b3 100644 --- a/src/generic/grideditors.cpp +++ b/src/generic/grideditors.cpp @@ -1506,7 +1506,6 @@ void wxGridCellEnumEditor::BeginEdit(int row, int col, wxGrid* grid) } Combo()->SetSelection(m_index); - Combo()->SetInsertionPointEnd(); Combo()->SetFocus(); } -- 2.45.2