summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-11 09:27:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-11 12:24:13 +0200
commita3395c8ada141f6e7cccc7b55ab1dfa963ef8019 (patch)
treefbdf74c3490d07e994f21fab001f321bbea73f0e
parent2196c770d55eb4362277ea361f506be8c682fe4c (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.cxx2
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)