sc/source/core/data/column4.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 48d0a9423f21b6380c3ca819e090947d3a25e23c Author: Dennis Francis <dennis.fran...@collabora.com> AuthorDate: Wed Mar 16 11:27:48 2022 +0530 Commit: Dennis Francis <dennis.fran...@collabora.com> CommitDate: Thu Mar 31 07:40:04 2022 +0200 lok-comments: CopyOneCellFromClip: notify lok clients Change-Id: I4b433c8f7123fe33f1b106cbf45216d2b0c73dba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131691 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> (cherry picked from commit 3902718e6daed24e4fe3653b4241f94e802c4e56) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132172 Tested-by: Jenkins Reviewed-by: Dennis Francis <dennis.fran...@collabora.com> diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx index 8bf1e0af8321..e109448c4fce 100644 --- a/sc/source/core/data/column4.cxx +++ b/sc/source/core/data/column4.cxx @@ -29,6 +29,7 @@ #include <drwlayer.hxx> #include <compiler.hxx> #include <recursionhelper.hxx> +#include <docsh.hxx> #include <o3tl/safeint.hxx> #include <svl/sharedstringpool.hxx> @@ -341,6 +342,14 @@ void ScColumn::CopyOneCellFromClip( sc::CopyFromClipContext& rCxt, SCROW nRow1, pBlockPos->miCellNotePos = maCellNotes.set( pBlockPos->miCellNotePos, nRow1, aNotes.begin(), aNotes.end()); + + // Notify our LOK clients. + aDestPos.SetRow(nRow1); + for (size_t i = 0; i < nDestSize; ++i) + { + ScDocShell::LOKCommentNotify(LOKCommentNotificationType::Add, &rDocument, aDestPos, aNotes[i]); + aDestPos.IncRow(); + } } void ScColumn::SetValues( const SCROW nRow, const std::vector<double>& rVals )