sc/source/ui/unoobj/docuno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8f7d01c290cdfbeeebdd4d78bf8fdb64ac227faf Author: Jan Holesovsky <ke...@collabora.com> Date: Mon Mar 9 14:51:59 2015 +0100 sc tiled mouse events: Fix the click coordinates in non-100% zooms. Change-Id: Ic535aaf9c1cac303dbade4dab7500d176aaaab2b diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index eae8cc0..dcd16fa 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -534,7 +534,7 @@ void ScModelObj::postMouseEvent(int nType, int nX, int nY, int nCount) return; // Calc operates in pixels... - MouseEvent aEvent(Point(nX / TWIPS_PER_PIXEL, nY / TWIPS_PER_PIXEL), nCount, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT); + MouseEvent aEvent(Point(nX * pViewData->GetPPTX(), nY * pViewData->GetPPTY()), nCount, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT); switch (nType) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits