[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sc/source
Pranav Kant
pranavk at collabora.co.uk
Thu Apr 13 09:26:56 UTC 2017
sc/source/ui/undo/undocell.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0bffbac287aefd85aa1a2f31ea3fae925d3b35f3
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Thu Apr 13 13:14:15 2017 +0530
sc lok: Add/Remove comment uno undo/redo
Change-Id: I34a32ebecae44fd80789ed7daf13f31b181cd4c0
(cherry picked from commit 291ec5e9708352a1d98c54814dad8db7ce38fdb9)
Reviewed-on: https://gerrit.libreoffice.org/36507
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index f9d082f0f902..0656483b60bd 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -778,6 +778,7 @@ void ScUndoReplaceNote::DoInsertNote( const ScNoteData& rNoteData )
OSL_ENSURE( !rDoc.GetNote(maPos), "ScUndoReplaceNote::DoInsertNote - unexpected cell note" );
ScPostIt* pNote = new ScPostIt( rDoc, maPos, rNoteData, false );
rDoc.SetNote( maPos, pNote );
+ ScDocShell::LOKCommentNotify(LOKCommentNotificationType::Add, &rDoc, maPos, pNote);
}
}
@@ -793,6 +794,7 @@ void ScUndoReplaceNote::DoRemoveNote( const ScNoteData& rNoteData )
caption object from the drawing layer while deleting pNote
(removing the caption is done by a drawing undo action). */
pNote->ForgetCaption();
+ ScDocShell::LOKCommentNotify(LOKCommentNotificationType::Remove, &rDoc, maPos, nullptr);
delete pNote;
}
}
More information about the Libreoffice-commits
mailing list