summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/undo/undoblk.cxx2
-rw-r--r--sc/source/ui/view/viewfun3.cxx5
2 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx
index e5c6151310d5..32e223fcafbb 100644
--- a/sc/source/ui/undo/undoblk.cxx
+++ b/sc/source/ui/undo/undoblk.cxx
@@ -1093,7 +1093,7 @@ void ScUndoPaste::DoChange(bool bUndo)
if ( !bUndo ) // draw redo after updating row heights
RedoSdrUndoAction(mpDrawUndo);
- pDocShell->PostPaint(aDrawRanges.Combine(), nPaint, nExtFlags);
+ pDocShell->PostPaint(aDrawRanges, nPaint, nExtFlags);
pDocShell->PostDataChanged();
if (pViewShell)
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index 80019d2f6c24..2d0e78e9c134 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -1819,10 +1819,7 @@ bool ScViewFunc::PasteFromClipToMultiRanges(
// Refresh the range that includes all pasted ranges. We only need to
// refresh the current sheet.
- ScRange aWholeRange = aRanges.Combine();
- aWholeRange.aStart.SetTab(rViewData.GetTabNo());
- aWholeRange.aEnd.SetTab(rViewData.GetTabNo());
- pDocSh->PostPaint(aWholeRange, PAINT_GRID);
+ pDocSh->PostPaint(aRanges, PAINT_GRID);
if (pDoc->IsUndoEnabled())
{