[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sc/source

Pranav Kant pranavk at collabora.co.uk
Fri Apr 21 11:27:08 UTC 2017


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

New commits:
commit 14b9d20090b9ecb75c13d1f5667b14df652cf027
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Apr 20 14:43:44 2017 +0530

    sc lok: Notify when comment is added to destination doc
    
    This can happen, for example, when undoing a deleted comment.
    
    Change-Id: I4aff244f1263b650457a70334f5f4d2c75ad3b64
    (cherry picked from commit 2373babc6888e840d44ed2db80567acccb9ba993)
    Reviewed-on: https://gerrit.libreoffice.org/36732
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index ba1af5e212a0..73ebc5ab6dce 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1783,6 +1783,8 @@ public:
         ScAddress aSrcPos(mnSrcCol, nRow, mnSrcTab);
         ScAddress aDestPos(mnDestCol, nDestRow, mnDestTab);
         miPos = mrDestNotes.set(miPos, nDestRow, p->Clone(aSrcPos, mrDestCol.GetDoc(), aDestPos, mbCloneCaption));
+        // Notify our LOK clients also
+        ScDocShell::LOKCommentNotify(LOKCommentNotificationType::Add, &mrDestCol.GetDoc(), aDestPos, p);
     }
 };
 


More information about the Libreoffice-commits mailing list