diff options
Diffstat (limited to 'drawinglayer/source/primitive2d/animatedprimitive2d.cxx')
-rw-r--r-- | drawinglayer/source/primitive2d/animatedprimitive2d.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive2d/animatedprimitive2d.cxx b/drawinglayer/source/primitive2d/animatedprimitive2d.cxx index 5808b68e0374..3050d90a6a55 100644 --- a/drawinglayer/source/primitive2d/animatedprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/animatedprimitive2d.cxx @@ -70,7 +70,7 @@ namespace drawinglayer { const double fState(getAnimationEntry().getStateAtTime(rViewInformation.getViewTime())); const sal_uInt32 nLen(getChildren().size()); - sal_uInt32 nIndex(basegfx::fround(fState * (double)nLen)); + sal_uInt32 nIndex(basegfx::fround(fState * static_cast<double>(nLen))); if(nIndex >= nLen) { @@ -158,9 +158,9 @@ namespace drawinglayer fState = 1.0; } - const double fIndex(fState * (double)(nSize - 1)); + const double fIndex(fState * static_cast<double>(nSize - 1)); const sal_uInt32 nIndA(sal_uInt32(floor(fIndex))); - const double fOffset(fIndex - (double)nIndA); + const double fOffset(fIndex - static_cast<double>(nIndA)); basegfx::B2DHomMatrix aTargetTransform; std::vector< basegfx::utils::B2DHomMatrixBufferedDecompose >::const_iterator aMatA(maMatrixStack.begin() + nIndA); |