sw/source/uibase/wrtsh/wrtsh1.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 6af797a11a2f1c79303580c4d76401f0594dcc7d Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Oct 15 14:44:07 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Oct 30 12:58:28 2024 +0100 We're not interested in using an empty reply Change-Id: I6925879c83e188e892a375df5b295a48fb0f464d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174974 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> (cherry picked from commit 18e1f0e92aa20ba9c08ce553523f8a2cdec2e23d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175759 Tested-by: Jenkins diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index c447eff36ca8..20e44c8a930d 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -2291,7 +2291,9 @@ void SwWrtShell::InsertPostIt(SwFieldMgr& rFieldMgr, const SfxRequest& rReq) sText = GetView().GetPostItMgr()->GetAnswerText(); pPostItMgr->RegisterAnswerText(OUString()); } - oTextPara = *pAnswer; + const EditTextObject& rTextObject = pAnswer->GetTextObject(); + if (rTextObject.GetParagraphCount() != 1 || !rTextObject.GetText(0).isEmpty()) + oTextPara = *pAnswer; } if ( HasSelection() && !IsTableMode() )