sw/source/uibase/wrtsh/wrtsh1.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 7241460e15af2e8aa3ba299aea27fbfeb0d147f7
Author:     Darshan-upadhyay1110 <darshan.upadh...@collabora.com>
AuthorDate: Fri Jun 21 09:49:56 2024 +0530
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Aug 29 16:41:15 2024 +0200

    Fix insert comment not working after document load.
    
        - In document with comments present insert comment not working document 
after load.
        - remove this condition for insertposIT to work for onload
        - this patch wil fix this issue
    
    Change-Id: I6128053b23678e61548d04979e3b199678a6b708
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172587
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx 
b/sw/source/uibase/wrtsh/wrtsh1.cxx
index d1834b19cfde..9dddd5fe4d15 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -2254,8 +2254,7 @@ void SwWrtShell::SetShowHeaderFooterSeparator( 
FrameControlType eControl, bool b
 void SwWrtShell::InsertPostIt(SwFieldMgr& rFieldMgr, const SfxRequest& rReq)
 {
     SwPostItField* pPostIt = 
dynamic_cast<SwPostItField*>(rFieldMgr.GetCurField());
-    bool bNew = !(pPostIt && pPostIt->GetTyp()->Which() == SwFieldIds::Postit);
-    if (bNew || GetView().GetPostItMgr()->IsAnswer())
+
     {
         const SvxPostItAuthorItem* pAuthorItem = 
rReq.GetArg<SvxPostItAuthorItem>(SID_ATTR_POSTIT_AUTHOR);
         OUString sAuthor;

Reply via email to