diff options
author | Justin Luth <justin.luth@collabora.com> | 2018-07-31 20:09:52 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2018-08-10 21:08:19 +0200 |
commit | f13a7100cfa1d76a1a27ffb9e986d627df20d4c0 (patch) | |
tree | 66355b7564dece43308df2b20f4a5e83cf626039 | |
parent | a4f80a3a7c76efd9a73ec6803ccce7514bbc570e (diff) |
cleanup tdf#106062 writerfilter: use new GetAnyProperty function
Change-Id: I88945bbaaf07e3b068c63f17c654c5f7fee9d20a
Reviewed-on: https://gerrit.libreoffice.org/58828
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx index 36baed7489ce..7b45cf36b865 100644 --- a/writerfilter/source/dmapper/DomainMapper.cxx +++ b/writerfilter/source/dmapper/DomainMapper.cxx @@ -3286,12 +3286,7 @@ void DomainMapper::lcl_utext(const sal_uInt8 * data_, size_t len) // Allow MSO to emulate LO footnote text starting at left margin - only meaningful with hanging indent m_pImpl->m_bCheckFirstFootnoteTab = false; sal_Int32 nFirstLineIndent = 0; - m_pImpl->GetPropertyFromStyleSheet(PROP_PARA_FIRST_LINE_INDENT) >>= nFirstLineIndent; - PropertyMapPtr pParaContext = m_pImpl->GetTopContextOfType(CONTEXT_PARAGRAPH); - boost::optional<PropertyMap::Property> oHangingIndent = pParaContext->getProperty(PROP_PARA_FIRST_LINE_INDENT); - if ( oHangingIndent ) - oHangingIndent->second >>= nFirstLineIndent; - + m_pImpl->GetAnyProperty(PROP_PARA_FIRST_LINE_INDENT, m_pImpl->GetTopContextOfType(CONTEXT_PARAGRAPH)) >>= nFirstLineIndent; if ( nFirstLineIndent < 0 ) m_pImpl->m_bIgnoreNextTab = true; } |