summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-05-16 23:52:47 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-05-16 23:52:47 +0200
commitfc6bb9146ca4976cfeb718f76e7e740812ff604f (patch)
tree53dcf540a999ee1831f06da9de5e395ffb16ea61 /svtools
parentc1c9015c7c5f5645cf541f562421970e361d6d2b (diff)
WaE - add explicit casting (decimal-types → integer types)
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 6939880c0d3d..14dae85f4ee8 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -319,25 +319,25 @@ bool BorderWidthImpl::operator== ( const BorderWidthImpl& r ) const
long BorderWidthImpl::GetLine1( long nWidth ) const
{
- long result = m_nRate1;
+ long result = static_cast<long>(m_nRate1);
if ( ( m_nFlags & CHANGE_LINE1 ) > 0 )
- result = m_nRate1 * nWidth;
+ result = static_cast<long>(m_nRate1 * nWidth);
return result;
}
long BorderWidthImpl::GetLine2( long nWidth ) const
{
- long result = m_nRate2;
+ long result = static_cast<long>(m_nRate2);
if ( ( m_nFlags & CHANGE_LINE2 ) > 0 )
- result = m_nRate2 * nWidth;
+ result = static_cast<long>(m_nRate2 * nWidth);
return result;
}
long BorderWidthImpl::GetGap( long nWidth ) const
{
- long result = m_nRateGap;
+ long result = static_cast<long>(m_nRateGap);
if ( ( m_nFlags & CHANGE_DIST ) > 0 )
- result = m_nRateGap * nWidth;
+ result = static_cast<long>(m_nRateGap * nWidth);
// Avoid having too small distances (less than 1pt)
if ( result < 20 && m_nRate1 > 0 && m_nRate2 > 0 )