[Libreoffice-commits] core.git: sc/source
Pranav Kant
pranavk at collabora.co.uk
Thu Apr 13 08:48:20 UTC 2017
sc/source/ui/undo/undocell.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 291ec5e9708352a1d98c54814dad8db7ce38fdb9
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
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;
}
}
More information about the Libreoffice-commits
mailing list