diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index ce39521ed0..69de77cada 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -4561,10 +4561,6 @@ wxGrid::DoGridCellLeftDown(wxMouseEvent& event, DisableCellEditControl(); MakeCellVisible( coords ); - // Whether we should move the current grid cell to the corrner of the - // last selected block. - bool goToLastBlock = false; - if ( event.CmdDown() && !event.ShiftDown() ) { if ( m_selection ) @@ -4583,8 +4579,6 @@ wxGrid::DoGridCellLeftDown(wxMouseEvent& event, wxGridBlockCoords(coords.GetRow(), coords.GetCol(), coords.GetRow(), coords.GetCol()), event); - - goToLastBlock = true; } } } @@ -4619,15 +4613,7 @@ wxGrid::DoGridCellLeftDown(wxMouseEvent& event, coords != wxGridNoCellCoords; } - if ( goToLastBlock && m_selection->IsSelection() ) - { - wxGridBlockCoords& lastBlock = m_selection->GetBlocks().back(); - SetCurrentCell(lastBlock.GetTopLeft()); - } - else - { - SetCurrentCell(coords); - } + SetCurrentCell(coords); } }