summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/slidebitmap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/slidebitmap.cxx')
-rw-r--r--slideshow/source/engine/slidebitmap.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/slideshow/source/engine/slidebitmap.cxx b/slideshow/source/engine/slidebitmap.cxx
index 9cc6f042cdb2..c06cc0786865 100644
--- a/slideshow/source/engine/slidebitmap.cxx
+++ b/slideshow/source/engine/slidebitmap.cxx
@@ -42,6 +42,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
+#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <canvas/canvastools.hxx>
#include <basegfx/tools/canvastools.hxx>
@@ -78,9 +79,7 @@ namespace slideshow
rendering::RenderState aRenderState;
::canvas::tools::initRenderState( aRenderState );
- ::basegfx::B2DHomMatrix aTranslation;
- aTranslation.translate( maOutputPos.getX(),
- maOutputPos.getY() );
+ const basegfx::B2DHomMatrix aTranslation(basegfx::tools::createTranslateB2DHomMatrix(maOutputPos));
::canvas::tools::setRenderStateTransform( aRenderState, aTranslation );
try