summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authornavin patidar <patidar@kacst.edu.sa>2013-02-02 08:40:30 +0300
committerAhmad Harthi <aalharthi@kacst.edu.sa>2013-02-02 07:48:37 +0000
commit73de30ca9ca0d3d4edd00e0e8f22451238699989 (patch)
tree98716cb8253050dcade2125499fd98cce3ecf49f /editeng
parent28b7359e00fec9fd3bfab3c9105cf250c4320a24 (diff)
fix fdo#59892 completely and fdo#33302 partially.
fix fdo#33302 for rtl scripts in cal,impress and draw. Change-Id: I83b1e077faf0f2578308e03b7598557f60e7cfd8 Reviewed-on: https://gerrit.libreoffice.org/1961 Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa> Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit3.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 74f6f9ea83cc..44589370c884 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -4275,7 +4275,7 @@ void ImpEditEngine::ImplInitDigitMode(OutputDevice* pOutDev, LanguageType eCurLa
void ImpEditEngine::ImplInitLayoutMode( OutputDevice* pOutDev, sal_uInt16 nPara, sal_uInt16 nIndex )
{
sal_Bool bCTL = sal_False;
- sal_uInt8 bR2L = sal_False;
+ sal_Bool bR2L = sal_False;
if ( nIndex == 0xFFFF )
{
bCTL = HasScriptType( nPara, i18n::ScriptType::COMPLEX );
@@ -4286,8 +4286,9 @@ void ImpEditEngine::ImplInitLayoutMode( OutputDevice* pOutDev, sal_uInt16 nPara,
ContentNode* pNode = GetEditDoc().GetObject( nPara );
short nScriptType = GetScriptType( EditPaM( pNode, nIndex+1 ) );
bCTL = nScriptType == i18n::ScriptType::COMPLEX;
- bR2L = GetRightToLeft( nPara, nIndex + 1); // this change was discussed in issue 37190
- // it also works for issue 55927
+ // this change was discussed in issue 37190
+ bR2L = GetRightToLeft( nPara, nIndex + 1) == 1 /*RTL*/ ? true : false;
+ // it also works for issue 55927
}
sal_uLong nLayoutMode = pOutDev->GetLayoutMode();