https://bugs.freedesktop.org/show_bug.cgi?id=39001
--- Comment #11 from Julien Nabet <[email protected]> --- If the file isn't invalid, here's a proposed patch: diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 7c4f545..ce3aeb5 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -506,7 +506,13 @@ void RTFDocumentImpl::sectBreak(bool bFinal = false) bool bNeedSect = m_bNeedSect; // If there is no paragraph in this section, then insert a dummy one, as required by Writer if (m_bNeedPar) + { + // sometimes the rtf file has \sect at the end (see fdo#39001) + // in this case, there shouldn't be a new page + if (bFinal) + return; dispatchSymbol(RTF_PAR); + } // It's allowed to not have a non-table paragraph at the end of an RTF doc, add it now if required. if (m_bNeedFinalPar && bFinal) { -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
