sw/source/uibase/wrtsh/wrtsh1.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 964f2e5457cb6654e3ffefbecbfaf1782f133ab8 Author: Darshan-upadhyay1110 <darshan.upadh...@collabora.com> AuthorDate: Fri Jun 21 09:49:56 2024 +0530 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Jun 24 09:51:36 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/+/169311 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 1e3b12b614ce..07ebe418bef8 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -2216,8 +2216,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;