summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/source/drawingml/effectproperties.cxx2
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;