From 1cdb526f4f6a81f6dfc2756585fa3fd4bf4c674d Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Mon, 13 Mar 2017 11:42:31 +0100 Subject: LOK - Calc: commit 92716ab follow-up This patch is a follow-up for commit: 92716ab (Images are not painted below row 1000). There is no need to set the origin to (0,0) when checking the view range / object range overlapping. Change-Id: Id9fe9364155edd5a50c2d60ab08dd0bdcd1f568a Reviewed-on: https://gerrit.libreoffice.org/36586 Tested-by: Jenkins Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky --- svx/source/sdr/contact/objectcontactofpageview.cxx | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'svx') diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx index 8643cfd30324..552ac31866bf 100644 --- a/svx/source/sdr/contact/objectcontactofpageview.cxx +++ b/svx/source/sdr/contact/objectcontactofpageview.cxx @@ -229,23 +229,8 @@ namespace sdr aViewRange.intersect(aDiscreteClipRange); } - const MapMode aOrigMapMode = rTargetOutDev.GetMapMode(); - if (comphelper::LibreOfficeKit::isActive() && - comphelper::LibreOfficeKit::isLocalRendering()) - { - MapMode aMapMode = aOrigMapMode; - aMapMode.SetOrigin(Point()); - rTargetOutDev.SetMapMode(aMapMode); - } - // transform to world coordinates aViewRange.transform(rTargetOutDev.GetInverseViewTransformation()); - - if (comphelper::LibreOfficeKit::isActive() && - comphelper::LibreOfficeKit::isLocalRendering()) - { - rTargetOutDev.SetMapMode(aOrigMapMode); - } } // update local ViewInformation2D -- cgit