[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sc/source
Jan Holesovsky
kendy at collabora.com
Mon Mar 9 06:53:26 PDT 2015
sc/source/ui/unoobj/docuno.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8f7d01c290cdfbeeebdd4d78bf8fdb64ac227faf
Author: Jan Holesovsky <kendy at 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)
{
More information about the Libreoffice-commits
mailing list