diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-08 23:37:49 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-08 23:10:43 -0500 |
commit | a00c5917a8deb465cc1322e140000a81340f9d69 (patch) | |
tree | c45d47d05a39f677638bff68512fa6553305246a | |
parent | 01cb770ff2c97a3befee5f52ff0563d5e9525f29 (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.cxx | 2 |
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)); } |