summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/fntcache.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-05 08:25:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-07 17:49:01 +0200
commit2f25c7160c6f4f03cae3eea335218d14e7dfcbef (patch)
treee157ddcb2d8fdef1ca742be73c0250c89cc311ac /sw/source/core/txtnode/fntcache.cxx
parente371cc6cef2d94d82481a258343975556f37fa6d (diff)
coverity#1433794 Unintended sign extension
Change-Id: I674991f5621bf6cf5a9cbecac936872b48fbdbcd Reviewed-on: https://gerrit.libreoffice.org/52433 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/txtnode/fntcache.cxx')
-rw-r--r--sw/source/core/txtnode/fntcache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 2005af23df4b..bbfbe071d7e1 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -152,7 +152,7 @@ void SwFntObj::CreatePrtFont( const OutputDevice& rPrt )
const_cast<OutputDevice&>(rPrt).SetFont( m_aFont );
const FontMetric aWinMet( rPrt.GetFontMetric() );
const_cast<OutputDevice&>(rPrt).SetFont( aOldFnt );
- long nWidth = ( aWinMet.GetFontSize().Width() * m_nPropWidth ) / 100;
+ auto nWidth = ( aWinMet.GetFontSize().Width() * m_nPropWidth ) / 100;
if( !nWidth )
++nWidth;