View | Details | Raw Unified | Return to issue 21280
Collapse All | Expand All

(-)sc/source/ui/view/cellsh1.cxx (-7 / +4 lines)
Lines 1296-1302 Link Here
1296
							// directions if source and destination ranges intersect
1296
							// directions if source and destination ranges intersect
1297
							if ( !bOtherDoc )
1297
							if ( !bOtherDoc )
1298
							{
1298
							{
1299
								if ( pOwnClip && pOwnClip->GetDocument()->IsCutMode() )
1299
								if ( pOwnClip )
1300
								{
1300
								{
1301
									ScViewData* pData = GetViewData();
1301
									ScViewData* pData = GetViewData();
1302
									if ( pData->GetMarkData().GetTableSelect(
1302
									if ( pData->GetMarkData().GetTableSelect(
Lines 1307-1321 Link Here
1307
                                        SCCOL nClipStartX, nClipSizeX;
1307
                                        SCCOL nClipStartX, nClipSizeX;
1308
                                        SCROW  nClipStartY, nClipSizeY;
1308
                                        SCROW  nClipStartY, nClipSizeY;
1309
                                        pOwnClip->GetDocument()->GetClipStart( nClipStartX, nClipStartY );
1309
                                        pOwnClip->GetDocument()->GetClipStart( nClipStartX, nClipStartY );
1310
										// for CutMode, filtered rows can always be included
1311
										pOwnClip->GetDocument()->GetClipArea( nClipSizeX, nClipSizeY, sal_True );
1310
										pOwnClip->GetDocument()->GetClipArea( nClipSizeX, nClipSizeY, sal_True );
1312
										int nDisableShift = 0;
1311
										int nDisableShift = 0;
1313
										if ( nClipStartX <= nPosX + nClipSizeX &&
1312
										if ( MAXCOL <= nPosX + nClipSizeX )
1314
												nPosX <= nClipStartX + nClipSizeX )
1313
											nDisableShift |= SC_CELL_SHIFT_DISABLE_RIGHT;
1314
										if ( MAXROW <= nPosY + nClipSizeY )
1315
											nDisableShift |= SC_CELL_SHIFT_DISABLE_DOWN;
1315
											nDisableShift |= SC_CELL_SHIFT_DISABLE_DOWN;
1316
										if ( nClipStartY <= nPosY + nClipSizeY &&
1317
												nPosY <= nClipStartY + nClipSizeY )
1318
											nDisableShift |= SC_CELL_SHIFT_DISABLE_RIGHT;
1319
										if ( nDisableShift )
1316
										if ( nDisableShift )
1320
											pDlg->SetCellShiftDisabled( nDisableShift );
1317
											pDlg->SetCellShiftDisabled( nDisableShift );
1321
									}
1318
									}

Return to issue 21280