sc/source/ui/undo/undocell.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0bffbac287aefd85aa1a2f31ea3fae925d3b35f3
Author: Pranav Kant <[email protected]>
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 <[email protected]>
Tested-by: Jan Holesovsky <[email protected]>
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;
}
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits