summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview3.cxx
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-06-13 21:50:43 -0400
committerAshod Nakashian <ashnakash@gmail.com>2016-06-16 12:00:23 +0000
commitf82d4c9aca65b89fb7243857ed55665ca88c496e (patch)
tree0e75e152f71c642199adb6e1e0bda9efd340c011 /sc/source/ui/view/tabview3.cxx
parent60fdcda65bad242f99895cb453182578250fbdea (diff)
Revert "sc lok: limit movement of the cursor"
This reverts commit 538d0c92ae2d5cb36869360a0889bc063a854f47. No longer necessary with fast calc tile rendering. Change-Id: I82b020666abe13aa7a5292ad3c3dd979b970e2b0 Reviewed-on: https://gerrit.libreoffice.org/26368 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r--sc/source/ui/view/tabview3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index e7cabb2c5971..21a9a6b94d63 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -1020,7 +1020,7 @@ void ScTabView::MoveCursorAbs( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode,
if (nCurX < 0) nCurX = 0;
if (nCurY < 0) nCurY = 0;
if (nCurX > MAXCOL) nCurX = MAXCOL;
- nCurY = std::min(nCurY, comphelper::LibreOfficeKit::isActive() ? MAXTILEDROW - 1 : MAXROW);
+ if (nCurY > MAXROW) nCurY = MAXROW;
HideAllCursors();