[Libreoffice-commits] core.git: sc/source

Michael Meeks michael.meeks at suse.com
Tue Aug 20 04:49:04 PDT 2013


 sc/source/ui/view/viewfun4.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit ab55228f6c524ddefde2d7e1d6688b8a407da3ad
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

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