[Libreoffice-commits] .: Branch 'feature/unlimited-number-of-sheets' - 2 commits - sc/inc sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Tue May 31 12:45:24 PDT 2011
sc/inc/address.hxx | 2 +-
sc/source/ui/view/tabvwsh5.cxx | 1 +
sc/source/ui/view/tabvwshf.cxx | 10 +---------
3 files changed, 3 insertions(+), 10 deletions(-)
New commits:
commit 63203e86f81b9e8f57294347ba76840de0770d39
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue May 31 21:44:01 2011 +0200
some minor performance improvements
diff --git a/sc/source/ui/view/tabvwsh5.cxx b/sc/source/ui/view/tabvwsh5.cxx
index fffc035..5625dc4 100644
--- a/sc/source/ui/view/tabvwsh5.cxx
+++ b/sc/source/ui/view/tabvwsh5.cxx
@@ -241,6 +241,7 @@ void ScTabViewShell::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
break;
case SC_TABS_INSERTED:
GetViewData()->InsertTabs( nTab1, nTab2 );
+ break;
default:
OSL_FAIL("unbekannter ScTablesHint");
}
diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx
index a4f8379..9179407 100644
--- a/sc/source/ui/view/tabvwshf.cxx
+++ b/sc/source/ui/view/tabvwshf.cxx
@@ -308,15 +308,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq )
else
{
SCTAB nTabAfter = nTabNr+1;
- SCTAB nSelHigh=0;
-
- for(SCTAB i=0;i<nTabCount;i++)
- {
- if(rMark.GetTableSelect(i))
- {
- nSelHigh=i;
- }
- }
+ SCTAB nSelHigh = rMark.GetLastSelected();
for(SCTAB j=nSelHigh+1;j<nTabCount;j++)
{
commit 878899b8a99fb969bf941e7e457a52c00e8254b6
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue May 31 21:39:52 2011 +0200
set table limit to 32000
the performance of the insert algorithm allows now to create more than 10000 sheets in a reasonable time
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index ddc38f4..29c96c3 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -91,7 +91,7 @@ const SCSIZE SCSIZE_MAX = ::std::numeric_limits<SCSIZE>::max();
// Count values
const SCROW MAXROWCOUNT = MAXROWCOUNT_DEFINE;
const SCCOL MAXCOLCOUNT = MAXCOLCOUNT_DEFINE;
-const SCTAB MAXTABCOUNT = 10000;
+const SCTAB MAXTABCOUNT = 32000;
const SCCOLROW MAXCOLROWCOUNT = MAXROWCOUNT;
// Maximum values
const SCROW MAXROW = MAXROWCOUNT - 1;
More information about the Libreoffice-commits
mailing list