sc rowlimit: Make the cursor better fit the rendering.
Change-Id: If4d02161bd8a37100d7403c05ea0840a3d2d0cf8
This commit is contained in:
committed by
Jan Holesovsky
parent
27ca6387b7
commit
f7962f59ea
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user