diff options
author | Stephan Schäfer <ssa@openoffice.org> | 2002-09-13 15:01:29 +0000 |
---|---|---|
committer | Stephan Schäfer <ssa@openoffice.org> | 2002-09-13 15:01:29 +0000 |
commit | cf8c664d9f753441f128cb6ca52f73c549a62dd7 (patch) | |
tree | b5d5e435fd37ea9fa49a39540108a245f5096c70 /vcl/source/control | |
parent | b04c67c06bcaa900fc93d7410bd41d9bb863b886 (diff) |
#100860# improve right-alignment
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/edit.cxx | 8 |
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 { |