diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-07-07 11:55:56 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-07-07 11:55:56 +0000 |
commit | ae05c039393a7a4bfa101b557a796fd26ca298d3 (patch) | |
tree | 395d3d49d777bb37e3089269a3ded57c934ea3d7 /svtools | |
parent | 0ac7604e724cc90026787089f601945708197710 (diff) |
INTEGRATION: CWS tl53 (1.51.82); FILE MERGED
2008/06/10 08:07:40 tl 1.51.82.1: #i67789# warning-free code corrected
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/texteng.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/svtools/source/edit/texteng.cxx b/svtools/source/edit/texteng.cxx index 1ea5ecb1c4b9..4f0ff7974372 100644 --- a/svtools/source/edit/texteng.cxx +++ b/svtools/source/edit/texteng.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: texteng.cxx,v $ - * $Revision: 1.51 $ + * $Revision: 1.52 $ * * This file is part of OpenOffice.org. * @@ -3096,9 +3096,7 @@ void TextEngine::ImpInitWritingDirections( ULONG nPara ) if ( pParaPortion->GetNode()->GetText().Len() ) { - //TODO The following line needs to be fixed, see #i67789#: - const BYTE nDefaultDir = sal::static_int_cast< BYTE >( - IsRightToLeft() ? UBIDI_RTL : UBIDI_LTR); + const UBiDiLevel nBidiLevel = IsRightToLeft() ? 1 /*RTL*/ : 0 /*LTR*/; String aText( pParaPortion->GetNode()->GetText() ); // @@ -3108,7 +3106,7 @@ void TextEngine::ImpInitWritingDirections( ULONG nPara ) UBiDi* pBidi = ubidi_openSized( aText.Len(), 0, &nError ); nError = U_ZERO_ERROR; - ubidi_setPara( pBidi, aText.GetBuffer(), aText.Len(), nDefaultDir, NULL, &nError ); + ubidi_setPara( pBidi, aText.GetBuffer(), aText.Len(), nBidiLevel, NULL, &nError ); nError = U_ZERO_ERROR; long nCount = ubidi_countRuns( pBidi, &nError ); |