summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2017-09-27 21:20:03 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-10-19 22:32:08 +0200
commitf89dcfd3ce8b0ea788589247fb8c1124af51d30d (patch)
treed8cce6f7844adedd7494196db003f9093fc7b66f /writerfilter
parent80c0a7300b9e185cd77f754abbad31422826662c (diff)
related tdf#87533: handle LN_EG_SectPrContents_bidi correctly
Change-Id: I90d220550d24fb964cf4e528a1f506033f05de95 Reviewed-on: https://gerrit.libreoffice.org/42896 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper.cxx5
1 files changed, 4 insertions, 1 deletions
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:
{