sw/source/uibase/docvw/PostItMgr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 02ea2babaee02896b7dc3be154f10ccf1e412b0b
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Tue Feb 6 13:27:41 2024 +0530
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Feb 8 20:48:08 2024 +0100

    writer:LOK: make sure deleted comment is not notified incorrectly
    
    problem:
    on saving the existing docummunet with tracked deleted comment,
    LOK gets comment added msg for those comments
    
    Change-Id: I5c63a5bbbb7215bf7416412604530af4a6c69358
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163040
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/uibase/docvw/PostItMgr.cxx 
b/sw/source/uibase/docvw/PostItMgr.cxx
index bbc9b15ca322..ee7cb16685f2 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -912,7 +912,7 @@ void SwPostItMgr::LayoutPostIts()
                 {
                     if (bLoKitActive && !bTiledAnnotations)
                     {
-                        if (visiblePostIt->GetSidebarItem().mbPendingLayout)
+                        if (visiblePostIt->GetSidebarItem().mbPendingLayout && 
visiblePostIt->GetSidebarItem().mLayoutStatus != SwPostItHelper::DELETED)
                             lcl_CommentNotification(mpView, 
CommentNotificationType::Add, &visiblePostIt->GetSidebarItem(), 0);
                         else if (visiblePostIt->IsAnchorRectChanged())
                         {

Reply via email to