diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 09:48:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 14:48:49 +0100 |
commit | 10a17fe72998a951fb4fca9da4467df84700b0a2 (patch) | |
tree | 7cf8036080a97ed0c291c77df53b5c9a4a1f2990 /oox/source | |
parent | 01fbbf42689360bee4813a380726ea2747f550f9 (diff) |
coverity#1242917 Result is not floating-point
Change-Id: I284562585c10a3d68b8545df7b6cb3022001660c
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/drawingml/effectproperties.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/effectproperties.cxx b/oox/source/drawingml/effectproperties.cxx index 2fa608aef1cf..88638b88ab16 100644 --- a/oox/source/drawingml/effectproperties.cxx +++ b/oox/source/drawingml/effectproperties.cxx @@ -48,7 +48,7 @@ void EffectProperties::pushToPropMap( PropertyMap& rPropMap, attribIt->second >>= nAttrDist; // Negative X or Y dist indicates left or up, respectively - double nAngle = ( nAttrDir / PER_DEGREE ) * F_PI180; + double nAngle = ( static_cast<double>(nAttrDir) / PER_DEGREE ) * F_PI180; sal_Int32 nDist = convertEmuToHmm( nAttrDist ); sal_Int32 nXDist = cos(nAngle) * nDist; sal_Int32 nYDist = sin(nAngle) * nDist; |