summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/transitions/clockwipe.cxx
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-01-09 21:01:14 +0100
committersb <sb@openoffice.org>2010-01-09 21:01:14 +0100
commit73f17a4f9eaf9ab1495109f4c350afb809088b10 (patch)
tree3330b67c7840ead629d6de06887bdaf9dd979b90 /slideshow/source/engine/transitions/clockwipe.cxx
parenteb86211c1db0bb492669e7ac8302b89254ed4793 (diff)
parent63c6c5d78c2712b824c9194269d13422d4835487 (diff)
sb118: merged in DEV300_m69
Diffstat (limited to 'slideshow/source/engine/transitions/clockwipe.cxx')
-rw-r--r--slideshow/source/engine/transitions/clockwipe.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/slideshow/source/engine/transitions/clockwipe.cxx b/slideshow/source/engine/transitions/clockwipe.cxx
index 16088f1954d0..5beef1efcbd9 100644
--- a/slideshow/source/engine/transitions/clockwipe.cxx
+++ b/slideshow/source/engine/transitions/clockwipe.cxx
@@ -35,6 +35,7 @@
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/numeric/ftools.hxx>
+#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include "clockwipe.hxx"
@@ -66,9 +67,7 @@ namespace internal {
::basegfx::B2DPolyPolygon ClockWipe::operator () ( double t )
{
- ::basegfx::B2DHomMatrix aTransform;
- aTransform.scale( 0.5, 0.5 );
- aTransform.translate( 0.5, 0.5 );
+ const basegfx::B2DHomMatrix aTransform(basegfx::tools::createScaleTranslateB2DHomMatrix(0.5, 0.5, 0.5, 0.5));
::basegfx::B2DPolygon poly( calcCenteredClock(t) );
poly.transform( aTransform );
return ::basegfx::B2DPolyPolygon(poly);