summaryrefslogtreecommitdiffstats
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-09-21 11:58:02 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-09-21 12:13:01 +0200
commitebf0e1953ef422bb83201c89f0558bb9071edf63 (patch)
treea04e23e48e01e3853c9eb52134f7d2241cd174bf /writerfilter
parentreplace deprecated std::auto_ptr with boost::scoped_ptr (diff)
downloadcore-ebf0e1953ef422bb83201c89f0558bb9071edf63.tar.gz
core-ebf0e1953ef422bb83201c89f0558bb9071edf63.zip
fdo#52389 fix RTF import of paragraph without RTF_PAR at the end of the doc
Change-Id: Ib7b48986d5b01c75ae0be8dd6618a2e8be2ae51c
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 4acaad9dc3a9..f8200ff5907a 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -3774,6 +3774,8 @@ int RTFDocumentImpl::popState()
// This is the end of the doc, see if we need to close the last section.
if (m_pTokenizer->getGroup() == 1 && !m_bFirstRun)
{
+ if (m_bNeedCr)
+ dispatchSymbol(RTF_PAR);
m_bDeferredContSectBreak = false;
sectBreak(true);
}