summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/scene3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/engine3d/scene3d.cxx')
-rw-r--r--svx/source/engine3d/scene3d.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/engine3d/scene3d.cxx b/svx/source/engine3d/scene3d.cxx
index 1e3739005fa1..7646a2357d51 100644
--- a/svx/source/engine3d/scene3d.cxx
+++ b/svx/source/engine3d/scene3d.cxx
@@ -545,8 +545,8 @@ void E3dScene::RotateScene (const Point& rRef, double sn, double cs)
// ynew = x * sin(alpha) + y * cos(alpha)
// Bottom Right is not rotated: the pages of aOutRect must
// remain parallel to the coordinate axes.
- NewCenter.X() = (long) (Center.X() * cs - Center.Y() * sn);
- NewCenter.Y() = (long) (Center.X() * sn + Center.Y() * cs);
+ NewCenter.X() = static_cast<long>(Center.X() * cs - Center.Y() * sn);
+ NewCenter.Y() = static_cast<long>(Center.X() * sn + Center.Y() * cs);
}
Size Differenz;