Index: cellsh1.cxx =================================================================== --- cellsh1.cxx (revision 1557969) +++ cellsh1.cxx (working copy) @@ -1312,10 +1312,10 @@ int nDisableShift = 0; if ( nClipStartX <= nPosX + nClipSizeX && nPosX <= nClipStartX + nClipSizeX ) - nDisableShift |= SC_CELL_SHIFT_DISABLE_DOWN; + nDisableShift |= SC_CELL_SHIFT_DISABLE_RIGHT; if ( nClipStartY <= nPosY + nClipSizeY && nPosY <= nClipStartY + nClipSizeY ) - nDisableShift |= SC_CELL_SHIFT_DISABLE_RIGHT; + nDisableShift |= SC_CELL_SHIFT_DISABLE_DOWN; if ( nDisableShift ) pDlg->SetCellShiftDisabled( nDisableShift ); }