diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-12-16 11:30:10 +0100 |
---|---|---|
committer | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-12-16 11:31:21 +0100 |
commit | 4cc87255525d24c7abc34f0d7c05c4dfac67227d (patch) | |
tree | 7becab01de62515d0cff32f8a66d8893121e7f28 /sc | |
parent | d93718ff92e485ebcd014713574be596b8815ff8 (diff) |
lok: sc: fix DesktopLOKTest::testCellCursor unit test failure
Change-Id: Iba645a53abdd4fc550e7bec5189669eee065035b
Diffstat (limited to 'sc')
-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 104872b4b57d..e26a1c5f2d1f 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -5766,8 +5766,9 @@ OString ScGridWindow::getCellCursor(const Fraction& rZoomX, const Fraction& rZoo long nPosXTw = rtl::math::round(aScrPos.getX() / fPPTX); long nPosYTw = rtl::math::round(aScrPos.getY() / fPPTY); - long nSizeXTw = rtl::math::round(nSizeXPix / fPPTX); - long nSizeYTw = rtl::math::round(nSizeYPix / fPPTY); + // look at Rectangle( const Point& rLT, const Size& rSize ) for the '- 1' + long nSizeXTw = rtl::math::round(nSizeXPix / fPPTX) - 1; + long nSizeYTw = rtl::math::round(nSizeYPix / fPPTY) - 1; std::stringstream ss; ss << nPosXTw << ", " << nPosYTw << ", " << nSizeXTw << ", " << nSizeYTw << ", " |