sw/source/uibase/wrtsh/wrtsh1.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 18e1f0e92aa20ba9c08ce553523f8a2cdec2e23d 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: Tue Oct 15 16:34:47 2024 +0200 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> diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 92554cbfc715..94a27578fd68 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -2278,7 +2278,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() )