diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-04-13 13:14:15 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-04-13 14:17:42 +0530 |
commit | 291ec5e9708352a1d98c54814dad8db7ce38fdb9 (patch) | |
tree | 1bdbc077ef2c5191a85b4149b4008bb01b7b3232 /sc/source/ui/undo | |
parent | add STDEVPA test case (diff) | |
download | core-291ec5e9708352a1d98c54814dad8db7ce38fdb9.tar.gz core-291ec5e9708352a1d98c54814dad8db7ce38fdb9.zip |
sc lok: Add/Remove comment uno undo/redo
Change-Id: I34a32ebecae44fd80789ed7daf13f31b181cd4c0
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r-- | sc/source/ui/undo/undocell.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx index 7db4c9065500..0abd6920867c 100644 --- a/sc/source/ui/undo/undocell.cxx +++ b/sc/source/ui/undo/undocell.cxx @@ -789,6 +789,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); } } @@ -804,6 +805,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; } } |