summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-08-18 15:16:19 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-08-18 15:18:35 -0400
commit3104f95254530c76c3fc0c3b840254912c067ad8 (patch)
treec82d94a69f41acc951753cef5a684179422dc4a5 /sc
parentead1db7d4907ff70d412701f08b9c74481cef0bc (diff)
Let's not export sheet tab color when it's not set.
COL_AUTO is the default value which is treated as color not being set. The old code would export it as a white color which is not correct. Change-Id: Ib68fccfb228333f2059edc4cfffeed90880ebc60
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/excrecds.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/excel/excrecds.cxx b/sc/source/filter/excel/excrecds.cxx
index 0ea43ff47ab7..d911c1901544 100644
--- a/sc/source/filter/excel/excrecds.cxx
+++ b/sc/source/filter/excel/excrecds.cxx
@@ -424,8 +424,9 @@ void XclExpXmlSheetPr::SaveXml( XclExpXmlStream& rStrm )
// OOXTODO: XML_outlinePr
- rWorksheet->singleElement(
- XML_tabColor, XML_rgb, XclXmlUtils::ToOString(maTabColor).getStr(), FSEND);
+ if (maTabColor != Color(COL_AUTO))
+ rWorksheet->singleElement(
+ XML_tabColor, XML_rgb, XclXmlUtils::ToOString(maTabColor).getStr(), FSEND);
rWorksheet->singleElement(XML_pageSetUpPr,
// OOXTODO: XML_autoPageBreaks,