[Libreoffice-commits] core.git: Branch 'feature/sc-notes-storage' - sc/source
Laurent Godard
lgodard.libre at laposte.net
Tue Oct 8 00:20:36 PDT 2013
sc/source/ui/undo/undoblk.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 7ed8dd9d5dc577c85464db289e540e548672653b
Author: Laurent Godard <lgodard.libre at laposte.net>
Date: Tue Oct 8 09:19:18 2013 +0200
at least copy notes on Redo
Change-Id: I440b770d51fd827f4eb8c8a153648a17f1c97f95
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx
index ce78a8f..ddf9f09 100644
--- a/sc/source/ui/undo/undoblk.cxx
+++ b/sc/source/ui/undo/undoblk.cxx
@@ -909,6 +909,7 @@ void ScUndoPaste::DoChange(bool bUndo)
// do not undo/redo objects and note captions, they are handled via drawing undo
(nUndoFlags &= ~IDF_OBJECTS) |= IDF_NOCAPTIONS;
+
bool bPaintAll = false;
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
@@ -1284,8 +1285,9 @@ void ScUndoDragDrop::Redo()
aSourceMark.SelectTable( nTab, sal_True );
// do not clone objects and note captions into clipdoc (see above)
+ // but at least copy notes
ScClipParam aClipParam(aSrcRange, bCut);
- pDoc->CopyToClip(aClipParam, pClipDoc, &aSourceMark, false, bKeepScenarioFlags, false, false);
+ pDoc->CopyToClip(aClipParam, pClipDoc, &aSourceMark, false, bKeepScenarioFlags, false, true);
if (bCut)
{
More information about the Libreoffice-commits
mailing list