sc/source/core/data/column4.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 52dcf533a20c97234b6d286a42651e1a952745a1
Author:     Dennis Francis <[email protected]>
AuthorDate: Wed Mar 16 11:27:48 2022 +0530
Commit:     Andras Timar <[email protected]>
CommitDate: Fri Apr 1 13:49:57 2022 +0200

    lok-comments: CopyOneCellFromClip: notify lok clients
    
    Conflicts:
            sc/source/core/data/column4.cxx
    
    Change-Id: I4b433c8f7123fe33f1b106cbf45216d2b0c73dba
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131691
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Szymon Kłos <[email protected]>
    (cherry picked from commit 3902718e6daed24e4fe3653b4241f94e802c4e56)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132255
    Reviewed-by: Andras Timar <[email protected]>

diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx
index 7acd4b0a9183..57edd94a6a52 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 <svl/sharedstringpool.hxx>
 #include <sal/log.hxx>
@@ -304,6 +305,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, 
pDocument, aDestPos, aNotes[i]);
+            aDestPos.IncRow();
+        }
     }
 }
 

Reply via email to