summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorAron Budea <aron.budea@collabora.com>2020-08-15 17:55:15 +0200
committerCaolán McNamara <caolanm@redhat.com>2020-08-17 12:59:59 +0200
commita71f463bb4118baa6f6ca1d8179e655733e5fa4a (patch)
treeaa8be82d328a6b7084b658ee5bd7c23b3f919617 /sc
parent9818f70897ffff9098b315eed7c6e4e19bc81ceb (diff)
tdf#133853 Large spreadsheets have 16385 columns instead of 16384
MAXROW_JUMBO/MAXCOL_JUMBO should be max - 1, similarly to MAXROW/MAXCOL. Since f6064b13586aa8681907b69e4f43643251f9b803. Change-Id: I3d300e916b9584a2231f39bec5a044bd82c81752 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100777 Tested-by: Jenkins Reviewed-by: Aron Budea <aron.budea@collabora.com> (cherry picked from commit 8f53858381e0cd6a3391c4ce8a097cdafa9c8df0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100790 Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/address.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index 2ff4d362ed07..19077f4653bf 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -70,8 +70,8 @@ const SCROW MAXROW = MAXROWCOUNT - 1;
const SCCOL MAXCOL = MAXCOLCOUNT - 1;
const SCTAB MAXTAB = MAXTABCOUNT - 1;
const SCCOLROW MAXCOLROW = MAXROW;
-const SCROW MAXROW_JUMBO = 16 * 1000 * 1000;
-const SCCOL MAXCOL_JUMBO = 16384;
+const SCROW MAXROW_JUMBO = 16 * 1000 * 1000 - 1;
+const SCCOL MAXCOL_JUMBO = 16384 - 1;
// Maximum tiled rendering values
const SCROW MAXTILEDROW = 500000;
// Limit the initial tab count to prevent users to set the count too high,