sw/source/uibase/docvw/PostItMgr.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit ddc478a9afb89dd24cfa00ca2edef5d7d7fd4a71 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Mon Aug 15 08:41:28 2022 -0400 Commit: Ashod Nakashian <a...@collabora.com> CommitDate: Thu Aug 18 14:37:35 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> diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index bab23796a94b..1e19fc371142 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -253,6 +253,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