diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-08 23:37:49 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-09 02:44:08 +0100 |
commit | 73088aaaed3ad16f80405a3d87cea437d350b893 (patch) | |
tree | c1969ff54d047ac2b5b59e21ba24b8b77795a250 | |
parent | remove unnecessary check (diff) | |
download | core-73088aaaed3ad16f80405a3d87cea437d350b893.tar.gz core-73088aaaed3ad16f80405a3d87cea437d350b893.zip |
we need to explicitly set the paste area in ScMarkData, fdo#45481
-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 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)); } |