summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/tools.cxx
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@Sun.COM>2009-09-22 18:14:05 +0200
committerArmin Le Grand <Armin.Le.Grand@Sun.COM>2009-09-22 18:14:05 +0200
commit602841adb34579bcc9bb1ae3ec961753b8bd97f9 (patch)
tree8c920836e05f5abdc5ff02071032004db168b766 /slideshow/source/engine/tools.cxx
parent5cd6a50c1e2783b21340b7d6ee89e4e42221ffe7 (diff)
#i97509# continued matrix tooling and adapting the usages now to all the ooo code
Diffstat (limited to 'slideshow/source/engine/tools.cxx')
-rw-r--r--slideshow/source/engine/tools.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/slideshow/source/engine/tools.cxx b/slideshow/source/engine/tools.cxx
index b2c179647db3..136e70743916 100644
--- a/slideshow/source/engine/tools.cxx
+++ b/slideshow/source/engine/tools.cxx
@@ -51,6 +51,7 @@
#include <basegfx/vector/b2ivector.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/numeric/ftools.hxx>
+#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <cppcanvas/basegfxfactory.hxx>
@@ -524,10 +525,9 @@ namespace slideshow
{
if( !pAttr )
{
- ::basegfx::B2DHomMatrix aTransform;
-
- aTransform.scale( rShapeBounds.getWidth(), rShapeBounds.getHeight() );
- aTransform.translate( rShapeBounds.getMinX(), rShapeBounds.getMinY() );
+ const basegfx::B2DHomMatrix aTransform(basegfx::tools::createScaleTranslateB2DHomMatrix(
+ rShapeBounds.getWidth(), rShapeBounds.getHeight(),
+ rShapeBounds.getMinX(), rShapeBounds.getMinY()));
return aTransform;
}