[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Feb 8 20:11:38 PST 2012
sc/source/ui/docshell/impex.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a00c5917a8deb465cc1322e140000a81340f9d69
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Wed Feb 8 23:37:49 2012 +0100
we need to explicitly set the paste area in ScMarkData, fdo#45481
Signed-off-by: Kohei Yoshida <kohei.yoshida at suse.com>
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index c538977..5abf7d5 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));
}
More information about the Libreoffice-commits
mailing list