summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-05-29 18:23:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-05-29 18:25:24 +0200
commit3e07bdfce6ef700a94868ccc03268aa005c295b8 (patch)
treeec49a850917ff416c1bceaf1fd37ee9ff583929c
parent1b330990733bcffbbf485df7aaed8130c899e2b8 (diff)
Revert "fdo#50183 Use one sheet as default in Calc"
This reverts commit 9a7d3d47d9b4d57b0c7380eadb294add4245ba3a. It caused various tests in sc/JunitTest_sc_complex and sc/JunitTest_sc_unoapi to fail, which apparently implicitly depend on three instead of one sheets per default in Calc.
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Calc.xcs2
-rw-r--r--sc/source/core/tool/defaultsoptions.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Calc.xcs b/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
index 62f0ff030f0d..0cd2ff32ec37 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Calc.xcs
@@ -1620,7 +1620,7 @@
<author>Albert Thuswaldner</author>
<desc>Option to set initial number of sheet tabs</desc>
</info>
- <value>1</value>
+ <value>3</value>
</prop>
<prop oor:name="SheetPrefix" oor:type="xs:string">
<!-- UIHints: Tools - Options - Spreadsheet - Defaults -->
diff --git a/sc/source/core/tool/defaultsoptions.cxx b/sc/source/core/tool/defaultsoptions.cxx
index 9683a7affd57..034b5851d41c 100644
--- a/sc/source/core/tool/defaultsoptions.cxx
+++ b/sc/source/core/tool/defaultsoptions.cxx
@@ -61,7 +61,7 @@ ScDefaultsOptions::~ScDefaultsOptions()
void ScDefaultsOptions::SetDefaults()
{
- nInitTabCount = 1;
+ nInitTabCount = 3;
aInitTabPrefix = ScGlobal::GetRscString(STR_TABLE_DEF); // Default Prefix "Sheet"
}