summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/impltools.cxx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-11-19 14:37:36 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-11-19 15:48:30 +0100
commitb20156432fcb2dadabff2decaa04537a7eebc042 (patch)
tree0a09629e0c1c1cfd4752e1e53e70b41faaf3d05b /canvas/source/vcl/impltools.cxx
parente289fdedeb326a37253be509962c6c8ba0ccee80 (diff)
canvas: simplify calcRectToOriginTransform
Change-Id: I851d9d11c9d3f3c34353913a146ad168a98dc3d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176771 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'canvas/source/vcl/impltools.cxx')
-rw-r--r--canvas/source/vcl/impltools.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx
index cafc59a9b83f..854e8c1618e3 100644
--- a/canvas/source/vcl/impltools.cxx
+++ b/canvas/source/vcl/impltools.cxx
@@ -237,8 +237,7 @@ namespace vclcanvas::tools
// aligned with (0,0). The method takes the given
// rectangle, and calculates a transformation that maps
// this rectangle unscaled to the origin.
- ::basegfx::B2DHomMatrix aLocalTransform;
- ::canvas::tools::calcRectToOriginTransform( aLocalTransform,
+ ::basegfx::B2DHomMatrix aLocalTransform = ::canvas::tools::calcRectToOriginTransform(
aSrcRect,
rTransform );