diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-05-16 22:44:28 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-05-16 22:44:28 +0200 |
commit | 632922d451b72e0b8ba2336f79139002df41e656 (patch) | |
tree | 5c40dd21ac27cfe4e6724517aa34a50695d5831c /lotuswordpro/source/filter/lwpgrfobj.cxx | |
parent | bdc6b3c6da58a7fd4386e36577345ada1a86def1 (diff) |
WaE - add explicit casting (decimal-types → integer types)
Diffstat (limited to 'lotuswordpro/source/filter/lwpgrfobj.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpgrfobj.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpgrfobj.cxx b/lotuswordpro/source/filter/lwpgrfobj.cxx index 9d344447d035..73b436fa3f09 100644 --- a/lotuswordpro/source/filter/lwpgrfobj.cxx +++ b/lotuswordpro/source/filter/lwpgrfobj.cxx @@ -316,11 +316,11 @@ void LwpGraphicObject::GetRect(sal_Int32& nLeft, sal_Int32& nTop, sal_Int32& nRi double fHeight = 0; GetGrafScaledSize(fWidth, fHeight); - sal_Int32 nWidth = fWidth * UNITS_PER_INCH /CM_PER_INCH; - sal_Int32 nHeight = fHeight * UNITS_PER_INCH /CM_PER_INCH; + sal_Int32 nWidth = static_cast<sal_Int32>(fWidth * UNITS_PER_INCH /CM_PER_INCH); + sal_Int32 nHeight = static_cast<sal_Int32>(fHeight * UNITS_PER_INCH /CM_PER_INCH); - nLeft = pLayout->GetMarginsValue(MARGIN_LEFT) * UNITS_PER_INCH /CM_PER_INCH; - nTop = pLayout->GetMarginsValue(MARGIN_TOP)* UNITS_PER_INCH /CM_PER_INCH; + nLeft = static_cast<sal_Int32>(pLayout->GetMarginsValue(MARGIN_LEFT) * UNITS_PER_INCH /CM_PER_INCH); + nTop = static_cast<sal_Int32>(pLayout->GetMarginsValue(MARGIN_TOP) * UNITS_PER_INCH /CM_PER_INCH); nRight = nLeft+nWidth; nBottom = nTop+nHeight; } |