Kaydet (Commit) ab55228f authored tarafından Michael Meeks's avatar Michael Meeks

fdo#53032 - Use the right mark area to undo paste of RTF.

Change-Id: Iee0521e4f7851f5b51cf6ab7a973bf8b46fb09f5
üst d89e02e4
......@@ -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));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment