diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-03-09 14:51:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-16 09:38:00 +0100 |
commit | 1fd545024489cd48e484841ca026cdc21e83604b (patch) | |
tree | c3b8298e2658353c8a055d00e6752770d7467da5 /sc/source/ui | |
parent | bd03308ba9e299e54a55b51ad464fc4afaca9f91 (diff) |
sc tiled mouse events: Fix the click coordinates in non-100% zooms.
Change-Id: Ic535aaf9c1cac303dbade4dab7500d176aaaab2b
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index eae8cc04950b..dcd16fad3b24 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) { |