From df9a20fc3fce72ab19e71f3b17c43b5cb97dc871 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 21 Jan 2018 13:22:51 +0200 Subject: improve RTL detection in TextEngine the ubidi_getLogicalRun call returns a direction bool in bit 0, so the old code would only have been correct for embedding level 0. found by an up and coming loplugin. Change-Id: I56658981fbd32caf0d961d47d76b668f1dd1b680 Reviewed-on: https://gerrit.libreoffice.org/48261 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vcl/texteng.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/vcl/texteng.hxx') diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx index dcab1dd337b2..7d642ee7e116 100644 --- a/include/vcl/texteng.hxx +++ b/include/vcl/texteng.hxx @@ -62,7 +62,6 @@ namespace svl class TextLine; class TETextPortion; - struct TEIMEInfos; class SvtCTLOptions; @@ -195,7 +194,7 @@ class VCL_DLLPUBLIC TextEngine : public SfxBroadcaster long ImpGetPortionXOffset( sal_uInt32 nPara, TextLine const * pLine, std::size_t nTextPortion ); long ImpGetXPos( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, bool bPreferPortionStart = false ); long ImpGetOutputOffset( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, sal_Int32 nIndex2 ); - sal_uInt8 ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos ); + bool ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos ); static void ImpInitLayoutMode( OutputDevice* pOutDev ); TxtAlign ImpGetAlign() const; -- cgit