diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-06-11 09:27:39 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-12 18:55:53 +0200 |
commit | 9618360cae63c423d08b9b0b6d3441f3dabc3b96 (patch) | |
tree | c4ea05ecc54c0de6814fe9720368289cf644f5eb | |
parent | b11ee145ba0be38e413d68d7a3005a76fd83fcdc (diff) |
coverity#1436013 Unintended sign extension
Change-Id: Ic8dd5523d774f84627cd13ad53508386071f92e9
Reviewed-on: https://gerrit.libreoffice.org/55606
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/text/guess.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/guess.cxx b/sw/source/core/text/guess.cxx index 14b1de671f54..6b37ce710dc4 100644 --- a/sw/source/core/text/guess.cxx +++ b/sw/source/core/text/guess.cxx @@ -149,7 +149,7 @@ bool SwTextGuess::Guess( const SwTextPortion& rPor, SwTextFormatInfo &rInf, .getIDocumentSettingAccess().get(DocumentSettingId::UNBREAKABLE_NUMBERINGS); // first check if everything fits to line - if ( ( long ( nLineWidth ) * 2 > sal_Int32(nMaxLen) * nPorHeight ) || + if ( ( nLineWidth * 2 > SwTwips(nMaxLen) * nPorHeight ) || ( bUnbreakableNumberings && rPor.IsNumberPortion() ) ) { // call GetTextSize with maximum compression (for kanas) |