summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2022-03-16 11:27:48 +0530
committerDennis Francis <dennis.francis@collabora.com>2022-03-31 07:40:04 +0200
commit48d0a9423f21b6380c3ca819e090947d3a25e23c (patch)
tree6faf1a4dc0a06e5bea0c649c778ab9c02ec42e26
parent52fb77b4145e1206d164c36f045b367c684c266c (diff)
lok-comments: CopyOneCellFromClip: notify lok clients
Change-Id: I4b433c8f7123fe33f1b106cbf45216d2b0c73dba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131691 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit 3902718e6daed24e4fe3653b4241f94e802c4e56) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132172 Tested-by: Jenkins Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
-rw-r--r--sc/source/core/data/column4.cxx9
1 files changed, 9 insertions, 0 deletions
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 )