[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sc/source
Michael Meeks
michael.meeks at suse.com
Wed Aug 21 07:07:05 PDT 2013
sc/source/ui/view/viewfun4.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit c10b18e3405a0c501114ce435886b22ec59e53ab
Author: Michael Meeks <michael.meeks at suse.com>
Date: Tue Aug 20 12:45:34 2013 +0100
fdo#53032 - Use the right mark area to undo paste of RTF.
Change-Id: Iee0521e4f7851f5b51cf6ab7a973bf8b46fb09f5
Reviewed-on: https://gerrit.libreoffice.org/5538
Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index d4ec28f..821937e 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -142,12 +142,12 @@ void ScViewFunc::PasteRTF( SCCOL nStartCol, SCROW nStartRow,
pRedoDoc->InitUndo( pDoc, nTab, nTab );
pDoc->CopyToDocument( nStartCol,nStartRow,nTab, nStartCol,nEndRow,nTab, IDF_ALL|IDF_NOCAPTIONS, false, pRedoDoc );
+ ScRange aMarkRange(nStartCol, nStartRow, nTab, nStartCol, nEndRow, nTab);
ScMarkData aDestMark;
- aDestMark.SelectOneTable( nTab );
+ aDestMark.SetMarkArea( aMarkRange );
pDocSh->GetUndoManager()->AddUndoAction(
- new ScUndoPaste(
- pDocSh, ScRange(nStartCol, nStartRow, nTab, nStartCol, nEndRow, nTab),
- aDestMark, pUndoDoc, pRedoDoc, IDF_ALL, NULL));
+ new ScUndoPaste( pDocSh, aMarkRange, aDestMark,
+ pUndoDoc, pRedoDoc, IDF_ALL, NULL));
}
}
More information about the Libreoffice-commits
mailing list