summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;