summaryrefslogtreecommitdiff
path: root/sw/source/core/text/porexp.cxx
diff options
context:
space:
mode:
authorFrank Meies <fme@openoffice.org>2002-11-18 11:17:03 +0000
committerFrank Meies <fme@openoffice.org>2002-11-18 11:17:03 +0000
commitaa97d20d4946bfbfcd4b528dc0deb3b3759b3d70 (patch)
treee654d5f24905d0d96f3bac90a4cdd9695ff16eab /sw/source/core/text/porexp.cxx
parente38e3fc6c0ba5cef622f7412a573bd96c2476ca2 (diff)
#104743# Numbering portions in RTL environment
Diffstat (limited to 'sw/source/core/text/porexp.cxx')
-rw-r--r--sw/source/core/text/porexp.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/source/core/text/porexp.cxx b/sw/source/core/text/porexp.cxx
index 669670a01c80..ae9c0046f1e9 100644
--- a/sw/source/core/text/porexp.cxx
+++ b/sw/source/core/text/porexp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: porexp.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: fme $ $Date: 2002-10-23 14:54:06 $
+ * last change: $Author: fme $ $Date: 2002-11-18 12:17:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -157,6 +157,12 @@ void SwExpandPortion::Paint( const SwTxtPaintInfo &rInf ) const
if( rInf.OnWin() && pPortion && !pPortion->Width() )
pPortion->PrePaint( rInf, this );
+ // The contents of field portions is not considered during the
+ // calculation of the directions. Therefore we let vcl handle
+ // the calculation by removing the BIDI_STRONG_FLAG temporarily.
+ SwLayoutModeModifier aLayoutModeModifier( *rInf.GetOut() );
+ aLayoutModeModifier.SetAuto();
+
rInf.DrawText( *this, rInf.GetLen(), sal_False );
}