summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapes/viewshape.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/shapes/viewshape.cxx')
-rw-r--r--slideshow/source/engine/shapes/viewshape.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/slideshow/source/engine/shapes/viewshape.cxx b/slideshow/source/engine/shapes/viewshape.cxx
index 61e07ed68..76be1b9aa 100644
--- a/slideshow/source/engine/shapes/viewshape.cxx
+++ b/slideshow/source/engine/shapes/viewshape.cxx
@@ -51,6 +51,7 @@
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
+#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <canvas/verbosetrace.hxx>
#include <canvas/canvastools.hxx>
@@ -713,9 +714,8 @@ namespace slideshow
aBitmapTransform.invert();
- ::basegfx::B2DHomMatrix aTranslation;
- aTranslation.translate( aTmpRect.getMinX(),
- aTmpRect.getMinY() );
+ const basegfx::B2DHomMatrix aTranslation(basegfx::tools::createTranslateB2DHomMatrix(
+ aTmpRect.getMinX(), aTmpRect.getMinY()));
aBitmapTransform = aBitmapTransform * aTranslation;
pBitmap->setTransformation( aBitmapTransform );