X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7db713aea6713ef70756179ee88e7ab4bccb2e0d..8b4457965a0c0d0ef828dbf7cca3d2f947083054:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index f5fcc66684..3a3ba4e0ba 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7772,9 +7772,6 @@ void wxGrid::EnableCellEditControl( bool enable ) if (! m_editable) return; - if ( m_currentCellCoords == wxGridNoCellCoords ) - SetCurrentCell( 0, 0 ); - if ( enable != m_cellEditCtrlEnabled ) { if ( enable ) @@ -9705,7 +9702,7 @@ wxGrid::GetDefaultEditorForType(const wxString& typeName) const int index = m_typeRegistry->FindOrCloneDataType(typeName); if ( index == wxNOT_FOUND ) { - wxString errStr; + wxString errStr; errStr.Printf(wxT("Unknown data type name [%s]"), typeName.c_str()); wxFAIL_MSG(errStr.c_str());