Kaydet (Commit) 1fd54502 authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Miklos Vajna

sc tiled mouse events: Fix the click coordinates in non-100% zooms.

Change-Id: Ic535aaf9c1cac303dbade4dab7500d176aaaab2b
üst bd03308b
...@@ -534,7 +534,7 @@ void ScModelObj::postMouseEvent(int nType, int nX, int nY, int nCount) ...@@ -534,7 +534,7 @@ void ScModelObj::postMouseEvent(int nType, int nX, int nY, int nCount)
return; return;
// Calc operates in pixels... // 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) switch (nType)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment