sc rowlimit: Make the cursor better fit the rendering.

Change-Id: If4d02161bd8a37100d7403c05ea0840a3d2d0cf8
This commit is contained in:
Marco Cecchetti
2017-02-02 20:07:55 +01:00
committed by Jan Holesovsky
parent 27ca6387b7
commit f7962f59ea

View File

@@ -5721,8 +5721,9 @@ OString ScGridWindow::getCellCursor(const Fraction& rZoomX, const Fraction& rZoo
double fPPTX = pViewData->GetPPTX();
double fPPTY = pViewData->GetPPTY();
Rectangle aRect(Point(aScrPos.getX() / fPPTX, aScrPos.getY() / fPPTY),
Size(nSizeXPix / fPPTX, nSizeYPix / fPPTY));
Rectangle aRect(Point(rtl::math::round(aScrPos.getX() / fPPTX), rtl::math::round(aScrPos.getY() / fPPTY)),
Size(rtl::math::round(nSizeXPix / fPPTX), rtl::math::round(nSizeYPix / fPPTY)));
pViewData->SetZoom(defaultZoomX, defaultZoomY, true);