sw/source/uibase/docvw/AnnotationWin2.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2a040bfe3e9f58db5c9f6503796778f07e2beba9
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Wed May 15 23:08:23 2024 +0300
Commit:     Pranam Lashkari <lpra...@collabora.com>
CommitDate: Thu May 16 18:35:43 2024 +0200

    Added parent / child relationship to comments.
    
    Adding parent name of a comment into odf file when there is a parent.
    
    problem:
    adding reply to any comment, saving and reopening doc will not show
    reply in same thread.
    regression from: c0187d9f5e6ab5129b6fc4682555f2f8775d6f67
    
    this part affects core only, similar thing online was done in 
62cc2217217650d23c72e4646ccd793f76722d94
    
    Change-Id: I563e3a2785543da69d717f8770f91a514699e604
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167711
    Reviewed-by: Gökay ŞATIR <gokaysa...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx 
b/sw/source/uibase/docvw/AnnotationWin2.cxx
index 6b8895f1d9d2..a5e332ef4346 100644
--- a/sw/source/uibase/docvw/AnnotationWin2.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin2.cxx
@@ -1067,6 +1067,7 @@ void SwAnnotationWin::ExecuteCommand(sal_uInt16 nSlot)
                 auto pPostItField = mrMgr.GetLatestPostItField();
                 pPostItField->SetParentId(GetTopReplyNote()->GetParaId());
                 
pPostItField->SetParentPostItId(GetTopReplyNote()->GetPostItField()->GetPostItId());
+                this->GeneratePostItName();
                 
pPostItField->SetParentName(GetTopReplyNote()->GetPostItField()->GetName());
             }
             break;

Reply via email to