diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-08-18 15:16:19 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-08-18 15:18:35 -0400 |
commit | 3104f95254530c76c3fc0c3b840254912c067ad8 (patch) | |
tree | c82d94a69f41acc951753cef5a684179422dc4a5 /sc | |
parent | Write test to ensure that we export sheet tab color settings correctly. (diff) | |
download | core-3104f95254530c76c3fc0c3b840254912c067ad8.tar.gz core-3104f95254530c76c3fc0c3b840254912c067ad8.zip |
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.cxx | 5 |
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, |