diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2012-02-09 11:18:34 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2012-02-09 11:25:43 +0100 |
commit | c32b9cd2139249f0c680f664a0ceac3702dd0e73 (patch) | |
tree | 9bfee338ba50077f07e8b60ff55e8b1044c77a6e /writerfilter | |
parent | convert system path to url (diff) | |
download | core-c32b9cd2139249f0c680f664a0ceac3702dd0e73.tar.gz core-c32b9cd2139249f0c680f664a0ceac3702dd0e73.zip |
fdo#45553 fix RTF import of space-before/after tokens
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 4f6cde573350..f83f5f7df789 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -2035,8 +2035,6 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) { case RTF_SBASEDON: nSprm = NS_rtf::LN_ISTDBASE; break; case RTF_SNEXT: nSprm = NS_rtf::LN_ISTDNEXT; break; - case RTF_SB: nSprm = NS_ooxml::LN_CT_Spacing_before; break; - case RTF_SA: nSprm = NS_ooxml::LN_CT_Spacing_after; break; default: break; } if (nSprm > 0) @@ -2600,6 +2598,14 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) case RTF_WMETAFILE: m_aStates.top().aPicture.eWMetafile = nParam; break; + case RTF_SB: + lcl_putNestedAttribute(m_aStates.top().aParagraphSprms, + NS_ooxml::LN_CT_PPrBase_spacing, NS_ooxml::LN_CT_Spacing_before, pIntValue); + break; + case RTF_SA: + lcl_putNestedAttribute(m_aStates.top().aParagraphSprms, + NS_ooxml::LN_CT_PPrBase_spacing, NS_ooxml::LN_CT_Spacing_after, pIntValue); + break; default: SAL_INFO("writerfilter", OSL_THIS_FUNC << ": TODO handle value '" << lcl_RtfToString(nKeyword) << "'"); aSkip.setParsed(false); |