]> git.saurik.com Git - wxWidgets.git/commitdiff
don't set cursor coords to (0, 0) which could be invalid coordinates (in an empty...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Mar 2006 15:44:44 +0000 (15:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Mar 2006 15:44:44 +0000 (15:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index f5fcc666844fc57657e23aab14fb729bc8d6d77b..3a3ba4e0ba02f9ffef28eaec1284a2dee279f32a 100644 (file)
@@ -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());