summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/viewpt3d2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-26 14:59:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-27 06:09:29 +0000
commit883172375dbf5c0a79cbda5b615ff26ed27c78be (patch)
tree5d81ab1b28e7509a26148b602fd14f8c5c83642f /svx/source/engine3d/viewpt3d2.cxx
parenta7ea18ffe715776cb0e2b39e98569c75605ee332 (diff)
loplugin:expandablemethods in svx
Change-Id: I0d193ddf07cc0ddc89b6ce2df6eb71d44e49b631 Reviewed-on: https://gerrit.libreoffice.org/30295 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/engine3d/viewpt3d2.cxx')
-rw-r--r--svx/source/engine3d/viewpt3d2.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/svx/source/engine3d/viewpt3d2.cxx b/svx/source/engine3d/viewpt3d2.cxx
index 8ff54c05ff75..7c8a73cec03c 100644
--- a/svx/source/engine3d/viewpt3d2.cxx
+++ b/svx/source/engine3d/viewpt3d2.cxx
@@ -57,15 +57,7 @@ void Viewport3D::SetViewWindow(double fX, double fY, double fW, double fH)
const basegfx::B3DPoint& Viewport3D::GetViewPoint()
{
- MakeTransform();
-
- return aViewPoint;
-}
-
-// Calculate View transformations matrix
-
-void Viewport3D::MakeTransform()
-{
+ // Calculate View transformations matrix
if ( !bTfValid )
{
double fV, fXupVp, fYupVp;
@@ -123,6 +115,7 @@ void Viewport3D::MakeTransform()
bTfValid = true;
}
+ return aViewPoint;
}
void Viewport3D::SetDeviceWindow(const Rectangle& rRect)