diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-09-21 11:58:02 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2012-09-21 12:09:48 +0000 |
commit | 363029af2207dc890939e31850aba82263c97ec6 (patch) | |
tree | b7d493eac866f03e158ac3c8cf774c58bf97e659 | |
parent | e7de7acfb2d74afc3816b25494c0792f362e4a4b (diff) |
fdo#52389 fix RTF import of paragraph without RTF_PAR at the end of the doc
(cherry picked from commit ebf0e1953ef422bb83201c89f0558bb9071edf63)
Change-Id: Ib7b48986d5b01c75ae0be8dd6618a2e8be2ae51c
Reviewed-on: https://gerrit.libreoffice.org/663
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index fb18553ddb58..35d42c7bb853 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -3483,6 +3483,8 @@ int RTFDocumentImpl::popState() // This is the end of the doc, see if we need to close the last section. if (m_nGroup == 1 && !m_bFirstRun) { + if (m_bNeedCr) + dispatchSymbol(RTF_PAR); m_bDeferredContSectBreak = false; sectBreak(true); } |