diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-05 08:25:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-07 17:49:01 +0200 |
commit | 2f25c7160c6f4f03cae3eea335218d14e7dfcbef (patch) | |
tree | e157ddcb2d8fdef1ca742be73c0250c89cc311ac | |
parent | e371cc6cef2d94d82481a258343975556f37fa6d (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>
-rw-r--r-- | sw/source/core/txtnode/fntcache.cxx | 2 |
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; |