diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-24 02:06:06 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-24 02:06:06 -0500 |
commit | 808ca6d894630f3375ed6fda1f27f4c6cec9e67d (patch) | |
tree | bc9c2d3921f197c436010b286b6e07609a3ca0b8 /sc/source/filter/xml | |
parent | 5992e15796131f9814d9fb22cf807a2ee530d264 (diff) |
We still need to set the name to the 1st sheet.
This should fix the filters-test breakage.
Diffstat (limited to 'sc/source/filter/xml')
-rw-r--r-- | sc/source/filter/xml/xmlsubti.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlsubti.cxx b/sc/source/filter/xml/xmlsubti.cxx index 3ea979fe59c6..97aa9a5e0e0e 100644 --- a/sc/source/filter/xml/xmlsubti.cxx +++ b/sc/source/filter/xml/xmlsubti.cxx @@ -186,10 +186,12 @@ void ScMyTables::NewSheet(const rtl::OUString& sTableName, const rtl::OUString& maProtectionData = rProtectData; ScDocument *pDoc = ScXMLConverter::GetScDocument(rImport.GetModel()); + // The document contains one sheet when created. So for the first + // sheet, we only need to set its name. if (nCurrentSheet > 0) - { pDoc->AppendTabOnLoad(sTableName); - } + else + pDoc->SetTabNameOnLoad(nCurrentSheet, sTableName); rImport.SetTableStyle(sStyleName); SetTableStyle(sStyleName); |