summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-09-13 15:01:29 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-09-13 15:01:29 +0000
commitcf8c664d9f753441f128cb6ca52f73c549a62dd7 (patch)
treeb5d5e435fd37ea9fa49a39540108a245f5096c70
parentb04c67c06bcaa900fc93d7410bd41d9bb863b886 (diff)
#100860# improve right-alignment
-rw-r--r--vcl/source/control/edit.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 03a44cb22249..86889b01174f 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: edit.cxx,v $
*
- * $Revision: 1.44 $
+ * $Revision: 1.45 $
*
- * last change: $Author: ssa $ $Date: 2002-09-12 08:35:13 $
+ * last change: $Author: ssa $ $Date: 2002-09-13 16:01:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -889,7 +889,7 @@ void Edit::ImplAlign()
}
else if ( mnAlign == EDIT_ALIGN_RIGHT )
{
- long nMinXOffset = nOutWidth - nTextWidth;
+ long nMinXOffset = nOutWidth - nTextWidth - 1 - ImplGetExtraOffset();
if ( mnXOffset < nMinXOffset )
mnXOffset = nMinXOffset;
}
@@ -927,7 +927,7 @@ void Edit::ImplAlignAndPaint( xub_StrLen nChangedFrom, long nOldWidth )
else if ( mnAlign == EDIT_ALIGN_RIGHT )
{
nPaintStart = 0;
- ImplClearBackground( GetOutputSizePixel().Width()-Max( nOldWidth, nNewWidth )-1+ImplGetExtraOffset(), mnXOffset+1+ImplGetExtraOffset() );
+ ImplClearBackground( GetOutputSizePixel().Width()-Max( nOldWidth, nNewWidth )-1-ImplGetExtraOffset(), mnXOffset+1+ImplGetExtraOffset() );
}
else // EDIT_ALIGN_CENTER
{