From 7922d1d8b65fa18822eaba8d38460d76c1e7a2c8 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 8 Jan 2012 02:39:53 +0100 Subject: limit the number of sheets again to 10000 Our 32bit builds have problems to generate more sheets and crash with a std::bad_alloc Increase this limit again as soon as we can handle std::bad_alloc --- sc/inc/address.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sc/inc') diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index c3eb51ca9541..6c453115c02c 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -87,7 +87,8 @@ const SCSIZE SCSIZE_MAX = ::std::numeric_limits::max(); // Count values const SCROW MAXROWCOUNT = MAXROWCOUNT_DEFINE; const SCCOL MAXCOLCOUNT = MAXCOLCOUNT_DEFINE; -const SCTAB MAXTABCOUNT = 32000; +// limiting to 10000 for now, problem with 32 bit builds for now +const SCTAB MAXTABCOUNT = 10000; const SCCOLROW MAXCOLROWCOUNT = MAXROWCOUNT; // Maximum values const SCROW MAXROW = MAXROWCOUNT - 1; -- cgit