diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2024-02-06 13:27:41 +0530 |
---|---|---|
committer | Pranam Lashkari <lpranam@collabora.com> | 2024-02-13 12:20:20 +0100 |
commit | cdbb0a77d142ee10a3f7a90f14f1ef28463e3cde (patch) | |
tree | fd7946f845629f4195254285ecf0836b8f1ddadc /sw | |
parent | d0e71db33b91eeb9f4e4bb4ce13681e972e12a99 (diff) |
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 <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163156
Tested-by: Jenkins
(cherry picked from commit 7327752ef5d1fa2239cdd8355fb78da41c282717)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163275
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
Tested-by: Pranam Lashkari <lpranam@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/PostItMgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index dee622d4b502..d9eaa7fa324a 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -900,7 +900,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()) { |