diff options
Diffstat (limited to 'sc/source/ui/undo/undoutil.cxx')
-rw-r--r-- | sc/source/ui/undo/undoutil.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/undo/undoutil.cxx b/sc/source/ui/undo/undoutil.cxx index fc0e71b69db5..de9a50ef8283 100644 --- a/sc/source/ui/undo/undoutil.cxx +++ b/sc/source/ui/undo/undoutil.cxx @@ -43,11 +43,11 @@ void ScUndoUtil::MarkSimpleBlock( const ScDocShell* pDocShell, if ( nViewTab < nStartZ || nViewTab > nEndZ ) pViewShell->SetTabNo( nStartZ ); + const ScRange aMarkRange( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ); pViewShell->DoneBlockMode(); pViewShell->MoveCursorAbs( nStartX, nStartY, SC_FOLLOW_JUMP, false, false ); - pViewShell->InitOwnBlockMode(); - pViewShell->GetViewData().GetMarkData(). - SetMarkArea( ScRange( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ) ); + pViewShell->InitOwnBlockMode( aMarkRange ); + pViewShell->GetViewData().GetMarkData().SetMarkArea( aMarkRange ); pViewShell->MarkDataChanged(); } |