From 0cce452b93ce657e4baedb5b1574184b32e950e3 Mon Sep 17 00:00:00 2001 From: Darshan-upadhyay1110 Date: Mon, 6 Jan 2025 15:16:03 +0530 Subject: tdf#164374 - Fix Edit comments in navigator creates new comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create new comment on same position for online - This will fix the edit comment problem described in Bug 164374 Change-Id: If0aae9ad1e59eae8c7c09c72e8d7b0df5dbb38bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179823 Tested-by: Jenkins CollaboraOffice Reviewed-by: Szymon Kłos --- sw/source/uibase/wrtsh/wrtsh1.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 4e3dd61bbd5b..ab45f8317a66 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -2244,7 +2244,8 @@ void SwWrtShell::SetShowHeaderFooterSeparator( FrameControlType eControl, bool b void SwWrtShell::InsertPostIt(SwFieldMgr& rFieldMgr, const SfxRequest& rReq) { SwPostItField* pPostIt = dynamic_cast(rFieldMgr.GetCurField()); - + bool bNew = !(pPostIt && pPostIt->GetTyp()->Which() == SwFieldIds::Postit); + if (bNew || GetView().GetPostItMgr()->IsAnswer() || comphelper::LibreOfficeKit::isActive()) { const SvxPostItAuthorItem* pAuthorItem = rReq.GetArg(SID_ATTR_POSTIT_AUTHOR); OUString sAuthor; -- cgit