]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't put cursor at the end of wxGridCellEnumEditor control.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Nov 2010 15:03:33 +0000 (15:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Nov 2010 15:03:33 +0000 (15:03 +0000)
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

index 620130e596bd302f08b3186f927a569145831c9d..57f01972b3471cac7304f289832989143d307532 100644 (file)
@@ -1506,7 +1506,6 @@ void wxGridCellEnumEditor::BeginEdit(int row, int col, wxGrid* grid)
     }
 
     Combo()->SetSelection(m_index);
     }
 
     Combo()->SetSelection(m_index);
-    Combo()->SetInsertionPointEnd();
     Combo()->SetFocus();
 
 }
     Combo()->SetFocus();
 
 }