diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-07-27 21:20:34 +0200 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-07-30 16:07:03 +0100 |
commit | 577f1a54efe800c0e45bb64d78e2d9f6e489c2c6 (patch) | |
tree | 1fec1faa05bc5699ef6b9a2af9c5d4a9d3ed37fe /writerfilter/source/rtftok/rtfdocumentimpl.cxx | |
parent | 1b60abb34466d4604985efeb56d81bc4ac604c2e (diff) |
fdo#48033 fix RTF import of pictures inside table cells
Change-Id: I2d9ef3b346d4b10b99b67d0934d63d59f6119f97
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 08fef7a4d08f..a59c06db0b8f 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -759,7 +759,13 @@ int RTFDocumentImpl::resolvePict(bool bInline) } writerfilter::Reference<Properties>::Pointer_t const pProperties(new RTFReferenceProperties(aAttributes, aSprms)); checkFirstRun(); - Mapper().props(pProperties); + if (!m_pCurrentBuffer) + Mapper().props(pProperties); + else + { + RTFValue::Pointer_t pValue(new RTFValue(aAttributes, aSprms)); + m_pCurrentBuffer->push_back(make_pair(BUFFER_PROPS, pValue)); + } return 0; } |