[Libreoffice-commits] core.git: writerfilter/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Aug 10 19:08:44 UTC 2018


 writerfilter/source/dmapper/DomainMapper.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit f13a7100cfa1d76a1a27ffb9e986d627df20d4c0
Author:     Justin Luth <justin.luth at collabora.com>
AuthorDate: Tue Jul 31 20:09:52 2018 +0300
Commit:     Justin Luth <justin_luth at sil.org>
CommitDate: Fri Aug 10 21:08:19 2018 +0200

    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 at sil.org>

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;
         }


More information about the Libreoffice-commits mailing list