diff options
author | Herbert Duerr <hdu@openoffice.org> | 2002-11-13 14:59:02 +0000 |
---|---|---|
committer | Herbert Duerr <hdu@openoffice.org> | 2002-11-13 14:59:02 +0000 |
commit | 9cf3c9056dce201859b4ef2eea1bb0270cbd3e0a (patch) | |
tree | ca97aa3c23882b7e96d6cb3d91fbb4d138ab91b6 /vcl/win | |
parent | 458451dee61cb9cce9887d063e8561493086e72b (diff) |
#104768# disable text display improvement heuristic because of effects while typing text
Diffstat (limited to 'vcl/win')
-rwxr-xr-x | vcl/win/source/gdi/winlayout.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 803a6904c7b0..1b1dffe0778a 100755 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -2,9 +2,9 @@ * * $RCSfile: winlayout.cxx,v $ * - * $Revision: 1.52 $ + * $Revision: 1.53 $ * - * last change: $Author: hdu $ $Date: 2002-10-29 13:22:13 $ + * last change: $Author: hdu $ $Date: 2002-11-13 15:59:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -780,7 +780,7 @@ void SimpleWinLayout::Justify( long nNewWidth ) void SimpleWinLayout::ApplyDXArray( const long* pDXArray ) { - // try to avoid disturbance of text flow for LSB rounding case + // try to avoid disturbance of text flow for LSB rounding case; int i = 0; long nOldWidth = 0; for(; i < mnGlyphCount; ++i ) @@ -790,7 +790,13 @@ void SimpleWinLayout::ApplyDXArray( const long* pDXArray ) { nOldWidth += mpGlyphAdvances[ j ]; int nDiff = nOldWidth - pDXArray[ i ]; - if( nDiff>+1 || nDiff<-1) +#if 0 // disabled because of #104768# + // works great for static text, but problems when it gets changed + if( nDiff>+1 || nDiff<-1 ) +#else + // only bother with changing anything when something moved + if( nDiff != 0 ) +#endif break; } } |