diff --git a/pyuno/qa/pytests/testcollections_XCellRange.py b/pyuno/qa/pytests/testcollections_XCellRange.py index 3f610ca3485c..641482433375 100644 --- a/pyuno/qa/pytests/testcollections_XCellRange.py +++ b/pyuno/qa/pytests/testcollections_XCellRange.py @@ -348,7 +348,7 @@ class TestXCellRange(CollectionsTestBase): self.assertEqual(0, rng.RangeAddress.StartRow) self.assertEqual(0, rng.RangeAddress.StartColumn) self.assertEqual(0, rng.RangeAddress.EndRow) - self.assertEqual(1023, rng.RangeAddress.EndColumn) + self.assertEqual(16383, rng.RangeAddress.EndColumn) spr.close(True) @@ -369,7 +369,7 @@ class TestXCellRange(CollectionsTestBase): self.assertEqual(0, rng.RangeAddress.StartRow) self.assertEqual(0, rng.RangeAddress.StartColumn) self.assertEqual(0, rng.RangeAddress.EndRow) - self.assertEqual(1023, rng.RangeAddress.EndColumn) + self.assertEqual(16383, rng.RangeAddress.EndColumn) spr.close(True) diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index 18bd11049e92..13cfd9c408c2 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -60,7 +60,7 @@ const SCSIZE SCSIZE_MAX = ::std::numeric_limits::max(); // Count values const SCROW MAXROWCOUNT = 1048576; -const SCCOL MAXCOLCOUNT = 1024; +const SCCOL MAXCOLCOUNT = 16384; const SCCOL INITIALCOLCOUNT = 64; // initial number of columns we allocate memory for /// limiting to 10000 for now, problem with 32 bit builds for now const SCTAB MAXTABCOUNT = 10000; @@ -82,7 +82,7 @@ const SCTAB MAXINITTAB = 1024; const SCTAB MININITTAB = 1; inline constexpr OUStringLiteral MAXROW_STRING(u"1048575"); -inline constexpr OUStringLiteral MAXCOL_STRING(u"AMJ"); +inline constexpr OUStringLiteral MAXCOL_STRING(u"XFD"); inline constexpr OUStringLiteral MAXROW_JUMBO_STRING(u"16777215"); inline constexpr OUStringLiteral MAXCOL_JUMBO_STRING(u"XFD");