[Libreoffice-commits] core.git: writerfilter/qa writerfilter/source
Caolán McNamara
caolanm at redhat.com
Mon Aug 18 00:32:57 PDT 2014
writerfilter/qa/cppunittests/rtftok/data/pass/sf_edeb1eb341ad4c8608af9396952724a0-41170.rtf |binary
writerfilter/source/rtftok/rtfdocumentimpl.cxx | 4 ++++
2 files changed, 4 insertions(+)
New commits:
commit e2b9531e43d37677109aa13eb6e2ebf857961016
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Aug 17 22:32:52 2014 +0100
check for empty m_aStates
valgrind + bff
Change-Id: Ib818d508e10877a845b733c4aa223d1e2cbbc05e
diff --git a/writerfilter/qa/cppunittests/rtftok/data/pass/sf_edeb1eb341ad4c8608af9396952724a0-41170.rtf b/writerfilter/qa/cppunittests/rtftok/data/pass/sf_edeb1eb341ad4c8608af9396952724a0-41170.rtf
new file mode 100644
index 0000000..0925203
Binary files /dev/null and b/writerfilter/qa/cppunittests/rtftok/data/pass/sf_edeb1eb341ad4c8608af9396952724a0-41170.rtf differ
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 7098f04..3cbc638 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -459,6 +459,10 @@ void RTFDocumentImpl::checkNeedPap()
if (m_bNeedPap)
{
m_bNeedPap = false; // reset early, so we can avoid recursion when calling ourselves
+
+ if (m_aStates.empty())
+ return;
+
if (!m_aStates.top().pCurrentBuffer)
{
writerfilter::Reference<Properties>::Pointer_t const pParagraphProperties(
More information about the Libreoffice-commits
mailing list