diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-02-02 20:07:55 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-02-03 15:23:04 +0100 |
commit | f7962f59ea0b2a8f7c2d6c015e1c02855e1008fe (patch) | |
tree | d290397ccc58c1ff66ebbbdf86f1f4da094abaf4 | |
parent | 27ca6387b7188d1805dda8906d809025a2d3fb95 (diff) |
sc rowlimit: Make the cursor better fit the rendering.
Change-Id: If4d02161bd8a37100d7403c05ea0840a3d2d0cf8
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 3ac3af0dc73f..278aa5dac12e 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -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); |