diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 10:33:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:48:56 +0100 |
commit | fba7c60298fef64e0f22d7999dc979e3afdaa6a5 (patch) | |
tree | 6ceeb514df92186e04badfd9f106e3228c9972df /vcl | |
parent | 05a47ac4a577088ff642a3f0909c523d25225efb (diff) |
coverity#1242840 Unused value
Change-Id: Ic702d371998d5d6b49f1c27fe80b3651e8135993
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/sgvtext.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/filter/sgvtext.cxx b/vcl/source/filter/sgvtext.cxx index 5726c9e75299..797a6da6c1db 100644 --- a/vcl/source/filter/sgvtext.cxx +++ b/vcl/source/filter/sgvtext.cxx @@ -763,9 +763,7 @@ void FormatLine(UCHAR* TBuf, sal_uInt16& Index, ObjTextType& Atr0, ObjTextType& (*R)=(*WErec); nChars=WEnChar; - if (UmbWdt>=R->ChrXP) { - BoxRest=UmbWdt-R->ChrXP; - } else { // crush together + if (UmbWdt<R->ChrXP) { BoxRest=R->ChrXP-UmbWdt; // so much should be crushed for (i=2;i<=nChars;i++) { // first character position remains! Line[i]-=(i-1)*(BoxRest) /(nChars-1); |