summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-08 23:37:49 +0100
committerKohei Yoshida <kohei.yoshida@suse.com>2012-02-08 23:10:43 -0500
commita00c5917a8deb465cc1322e140000a81340f9d69 (patch)
treec45d47d05a39f677638bff68512fa6553305246a
parent01cb770ff2c97a3befee5f52ff0563d5e9525f29 (diff)
we need to explicitly set the paste area in ScMarkData, fdo#45481
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
-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 c5389776f675..5abf7d595e02 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));
}