[Libreoffice-commits] core.git: writerfilter/source
Serge Krot
Serge.Krot at cib.de
Thu Oct 19 20:32:42 UTC 2017
writerfilter/source/dmapper/DomainMapper.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit f89dcfd3ce8b0ea788589247fb8c1124af51d30d
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>
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index 2e19432a9b56..af3579441047 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -1519,7 +1519,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( sal_Int16(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