sw/source/uibase/docvw/PostItMgr.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit aaf6fc8ad599bd81155fe95414dc95481c2501ac
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Mon Aug 15 08:41:28 2022 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Thu Aug 18 16:59:26 2022 +0200

    sw: lok: fix removing redlines annotations
    
    The redlines annotations has a logical remove
    and it fails to notify client side.
    
    Signed-off-by: Henry Castro <hcas...@collabora.com>
    Change-Id: Iba228b4d6001b8c9009332f6889b7b78bc847247
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138312
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Ashod Nakashian <a...@collabora.com>
    (cherry picked from commit ddc478a9afb89dd24cfa00ca2edef5d7d7fd4a71)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138426
    Tested-by: Jenkins

diff --git a/sw/source/uibase/docvw/PostItMgr.cxx 
b/sw/source/uibase/docvw/PostItMgr.cxx
index ac132eae55cb..ce02a1c39a2a 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -255,6 +255,13 @@ bool SwPostItMgr::CheckForRemovedPostIts()
             if (GetActiveSidebarWin() == p->mpPostIt)
                 SetActiveSidebarWin(nullptr);
             p->mpPostIt.disposeAndClear();
+
+            if (comphelper::LibreOfficeKit::isActive() && 
!comphelper::LibreOfficeKit::isTiledAnnotations())
+            {
+                const SwPostItField* pPostItField = static_cast<const 
SwPostItField*>(p->GetFormatField().GetField());
+                lcl_CommentNotification(mpView, 
CommentNotificationType::Remove, nullptr, pPostItField->GetPostItId());
+            }
+
             bRemoved = true;
         }
         else

Reply via email to