summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-03-22 09:35:47 +0000
committerOliver Bolte <obo@openoffice.org>2006-03-22 09:35:47 +0000
commit2c9cdc22234a27db58e21eb59ba7b6b02a4c6a20 (patch)
tree19aff16fb2ef2e4b623caa5d5248388a1ccdfea0
parent0e4734692fb0d5aabb2dc9d3e66f2052c9401746 (diff)
INTEGRATION: CWS nwfrtl (1.30.122); FILE MERGED
2006/02/21 10:33:21 pl 1.30.122.1: #i62347# fix RTl mode
-rw-r--r--svtools/source/edit/svmedit.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/svtools/source/edit/svmedit.cxx b/svtools/source/edit/svmedit.cxx
index dddc47d8d9b1..20f745cb67bd 100644
--- a/svtools/source/edit/svmedit.cxx
+++ b/svtools/source/edit/svmedit.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svmedit.cxx,v $
*
- * $Revision: 1.30 $
+ * $Revision: 1.31 $
*
- * last change: $Author: kz $ $Date: 2005-11-01 10:24:58 $
+ * last change: $Author: obo $ $Date: 2006-03-22 10:35:47 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -456,7 +456,7 @@ void ImpSvMEdit::Resize()
Size aTextWindowSz( aSz );
aTextWindowSz.Width() -= maTextWindowOffset.X();
aTextWindowSz.Height() -= maTextWindowOffset.Y();
- mpTextWindow->SetPosSizePixel( maTextWindowOffset, aTextWindowSz );
+ Point aTextWindowPos( maTextWindowOffset );
if ( !mpHScrollBar )
mpTextWindow->GetTextEngine()->SetMaxTextWidth( aSz.Width() );
@@ -467,11 +467,16 @@ void ImpSvMEdit::Resize()
if ( mpVScrollBar )
{
if( Application::GetSettings().GetLayoutRTL() )
+ {
mpVScrollBar->SetPosSizePixel( 0, 0, nSBWidth, aSz.Height() );
+ aTextWindowPos.X() += nSBWidth;
+ }
else
mpVScrollBar->SetPosSizePixel( aEditSize.Width()-nSBWidth, 0, nSBWidth, aSz.Height() );
}
+ mpTextWindow->SetPosSizePixel( aTextWindowPos, aTextWindowSz );
+
if ( mpScrollBox )
mpScrollBox->SetPosSizePixel( aSz.Width(), aSz.Height(), nSBWidth, nSBWidth );