diff --git a/src/generic/gridsel.cpp b/src/generic/gridsel.cpp index 673c75cc67..52e16e3644 100644 --- a/src/generic/gridsel.cpp +++ b/src/generic/gridsel.cpp @@ -488,7 +488,7 @@ void wxGridSelection::UpdateRows( size_t pos, int numRows ) count--; } else - block.SetBottomRow( pos ); + block.SetBottomRow( pos - 1 ); } } } @@ -537,7 +537,7 @@ void wxGridSelection::UpdateCols( size_t pos, int numCols ) count--; } else - block.SetRightCol(pos); + block.SetRightCol( pos - 1 ); } } }