summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 10:50:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:48:59 +0100
commitd82057a3c7deba1d3a3dc65ef845ac14da7b6ba0 (patch)
tree0e9d210c1f58614ddbba7cc0280d9897fdf49a75 /sd
parentb22c04afb38ce4304da272cc239b9264e10e2e12 (diff)
coverity#1242800 Result is not floating-point
Change-Id: Idcd1b3bd542512707b722708e4b3336c71fbff80
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/epptso.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index bcd25ff17d22..3f23530eece3 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -1006,8 +1006,8 @@ void PPTWriter::ImplFlipBoundingBox( EscherPropertyContainer& rPropOpt )
double fCos = cos( (double)mnAngle * F_PI18000 );
double fSin = sin( (double)mnAngle * F_PI18000 );
- double fWidthHalf = maRect.GetWidth() / 2;
- double fHeightHalf = maRect.GetHeight() / 2;
+ double fWidthHalf = maRect.GetWidth() / 2.0;
+ double fHeightHalf = maRect.GetHeight() / 2.0;
double fXDiff = fCos * fWidthHalf + fSin * (-fHeightHalf);
double fYDiff = - ( fSin * fWidthHalf - fCos * ( -fHeightHalf ) );