summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan-upadhyay1110 <darshan.upadhyay@collabora.com>2024-06-21 09:49:56 +0530
committerMiklos Vajna <vmiklos@collabora.com>2024-08-29 16:41:15 +0200
commit7241460e15af2e8aa3ba299aea27fbfeb0d147f7 (patch)
tree196b22feb9164cbb3e6ef2595f6b1bb400a13233
parent484cfb8c2496d9fb09af822a128f333a0f2c2d06 (diff)
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 <vmiklos@collabora.com> Tested-by: Jenkins
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx3
1 files changed, 1 insertions, 2 deletions
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;