[Libreoffice-commits] core.git: Branch 'private/swe/libreoffice-5-2+backports' - writerfilter/source

Serge Krot Serge.Krot at cib.de
Wed Nov 1 21:53:41 UTC 2017


 writerfilter/source/dmapper/DomainMapper.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 0dd909fff3117c8b30c33da48939215b44595c39
Author: Serge Krot <Serge.Krot at cib.de>
Date:   Wed Sep 27 21:20:03 2017 +0200

    related tdf#87533: handle LN_EG_SectPrContents_bidi correctly
    
    Change-Id: I90d220550d24fb964cf4e528a1f506033f05de95
    Reviewed-on: https://gerrit.libreoffice.org/42896
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Reviewed-on: https://gerrit.libreoffice.org/44176
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index 138fca3f7863..46aef6bf81c7 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -1473,7 +1473,10 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, const PropertyMapPtr& rContext )
         break;
     case NS_ooxml::LN_EG_SectPrContents_bidi:
         if (pSectionContext != nullptr)
-            pSectionContext->Insert(PROP_WRITING_MODE, uno::makeAny( text::WritingMode2::RL_TB));
+        {
+            const sal_Int16 writingMode = (nIntValue != 0) ? sal_Int16(text::WritingMode2::RL_TB) : sal_Int16(text::WritingMode2::LR_TB);
+            pSectionContext->Insert(PROP_WRITING_MODE, uno::makeAny(writingMode));
+        }
         break;
     case NS_ooxml::LN_EG_RPrBase_highlight:
         {


More information about the Libreoffice-commits mailing list