summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index d7422a061cf2..4964791cf040 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -817,15 +817,16 @@ int RTFDocumentImpl::resolvePict(bool bInline)
writerfilter::Reference<Properties>::Pointer_t const pProperties(new RTFReferenceProperties(aAttributes, aSprms));
checkFirstRun();
if (!m_pCurrentBuffer)
+ {
Mapper().props(pProperties);
+ // Make sure we don't loose these properties with a too early reset.
+ m_bHadPicture = true;
+ }
else
{
RTFValue::Pointer_t pValue(new RTFValue(aAttributes, aSprms));
m_pCurrentBuffer->push_back(make_pair(BUFFER_PROPS, pValue));
}
-
- // Make sure we don't loose these properties with a too early reset.
- m_bHadPicture = true;
return 0;
}