diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-10-27 12:39:10 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-10-27 13:04:20 +0200 |
commit | beffbd826a74f3751bd34d7747e401de7d836457 (patch) | |
tree | 9f51c5e2be313dfb295a5f23c8dd508c986240ab /writerfilter/source | |
parent | fdo#42407 fix RTF import of WMF images inside textframes (diff) | |
download | core-beffbd826a74f3751bd34d7747e401de7d836457.tar.gz core-beffbd826a74f3751bd34d7747e401de7d836457.zip |
fix top/left/right/bottom margin of RTF imported inline images
This is similar to 3d7e168a2a43c2414b0633379102ddb29437e75b, but for RTF
(Word default is 0, Writer is something larger).
Change-Id: Ibb429eed5d3c1d09777db88ba2a98503c8ed0ed8
Diffstat (limited to 'writerfilter/source')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 7950e290f5c5..1fab29306a3c 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -744,6 +744,10 @@ int RTFDocumentImpl::resolvePict(bool bInline) if (bInline) { RTFSprms aInlineAttributes; + aInlineAttributes.set(NS_ooxml::LN_CT_Inline_distT, RTFValue::Pointer_t(new RTFValue(0))); + aInlineAttributes.set(NS_ooxml::LN_CT_Inline_distB, RTFValue::Pointer_t(new RTFValue(0))); + aInlineAttributes.set(NS_ooxml::LN_CT_Inline_distL, RTFValue::Pointer_t(new RTFValue(0))); + aInlineAttributes.set(NS_ooxml::LN_CT_Inline_distR, RTFValue::Pointer_t(new RTFValue(0))); RTFSprms aInlineSprms; aInlineSprms.set(NS_ooxml::LN_CT_Inline_extent, pExtentValue); aInlineSprms.set(NS_ooxml::LN_CT_Inline_docPr, pDocprValue); |