summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-08 23:37:49 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-09 02:44:08 +0100
commit73088aaaed3ad16f80405a3d87cea437d350b893 (patch)
treec1969ff54d047ac2b5b59e21ba24b8b77795a250
parentb14f61c40c1ddd897ba4b54c063753c2e3550d46 (diff)
we need to explicitly set the paste area in ScMarkData, fdo#45481
-rw-r--r--sc/source/ui/docshell/impex.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index ede56ebb183e..dd1ed0336731 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -263,7 +263,7 @@ void ScImportExport::EndPaste()
pRedoDoc->InitUndo( pDoc, aRange.aStart.Tab(), aRange.aEnd.Tab() );
pDoc->CopyToDocument( aRange, IDF_ALL | IDF_NOCAPTIONS, false, pRedoDoc );
ScMarkData aDestMark;
- aDestMark.SelectOneTable( aRange.aStart.Tab() );
+ aDestMark.SetMarkArea(aRange);
pDocSh->GetUndoManager()->AddUndoAction(
new ScUndoPaste(pDocSh, aRange, aDestMark, pUndoDoc, pRedoDoc, IDF_ALL, NULL));
}