don't set cursor coords to (0, 0) which could be invalid coordinates (in an empty grid)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7772,9 +7772,6 @@ void wxGrid::EnableCellEditControl( bool enable )
|
|||||||
if (! m_editable)
|
if (! m_editable)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( m_currentCellCoords == wxGridNoCellCoords )
|
|
||||||
SetCurrentCell( 0, 0 );
|
|
||||||
|
|
||||||
if ( enable != m_cellEditCtrlEnabled )
|
if ( enable != m_cellEditCtrlEnabled )
|
||||||
{
|
{
|
||||||
if ( enable )
|
if ( enable )
|
||||||
|
Reference in New Issue
Block a user