summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-10-25 10:06:41 -0400
committerAshod Nakashian <ashnakash@gmail.com>2016-10-25 15:03:27 +0000
commitc253dd3de5ee430855de7f3a0967a647222cc70c (patch)
tree56a27802337a0b184dcffa64d6b47a98e18d0528
parentde31257b4b5c26f5a9403b22a953043d49613885 (diff)
sc lok: remove tiled row limitation
Change-Id: I2d9556d7f233878453383a8b3ed588f86fb01a78 Reviewed-on: https://gerrit.libreoffice.org/30274 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r--sc/inc/address.hxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx7
-rw-r--r--sc/source/ui/view/tabview3.cxx2
3 files changed, 1 insertions, 10 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index 4654cede6665..8ac565c2ac65 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -70,8 +70,6 @@ const SCROW MAXROW = MAXROWCOUNT - 1;
const SCCOL MAXCOL = MAXCOLCOUNT - 1;
const SCTAB MAXTAB = MAXTABCOUNT - 1;
const SCCOLROW MAXCOLROW = MAXROW;
-// Maximun tiled rendering values
-const SCROW MAXTILEDROW = 1000;
// Limit the initial tab count to prevent users to set the count too high,
// which could cause the memory usage of blank documents to exceed the
// available system memory.
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index bbb18e0eb666..3011b48f42e0 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -1981,13 +1981,6 @@ void ScGridWindow::HandleMouseButtonDown( const MouseEvent& rMEvt, MouseEventSta
pViewData->GetPosFromPixel( aPos.X(), aPos.Y(), eWhich, nPosX, nPosY );
SCTAB nTab = pViewData->GetTabNo();
- if ( comphelper::LibreOfficeKit::isActive() && nPosY > MAXTILEDROW - 1 )
- {
- nButtonDown = 0;
- nMouseStatus = SC_GM_NONE;
- return;
- }
-
// Auto filter / pivot table / data select popup. This shouldn't activate the part.
if ( !bDouble && !bFormulaMode && rMEvt.IsLeft() )
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index 14fbad91a666..942ca48656ea 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -1092,7 +1092,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);
+ nCurY = std::min(nCurY, MAXROW);
HideAllCursors();