diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-08-18 15:16:19 -0400 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-19 00:48:58 -0500 |
commit | 171a47faaced1ac556ab9193546d6c543a709fe6 (patch) | |
tree | 2066271c742de8b839bd8fcc721ef7aee3abf4cb | |
parent | f3e7a49e2c7ea235b724c157f8d05a23c675913a (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
(cherry picked from commit 3104f95254530c76c3fc0c3b840254912c067ad8)
Reviewed-on: https://gerrit.libreoffice.org/11004
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-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 36a3254a3760..b5ede00a24ba 100644 --- a/sc/source/filter/excel/excrecds.cxx +++ b/sc/source/filter/excel/excrecds.cxx @@ -449,8 +449,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, |