diff options
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh1.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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() ) |