diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-05 01:01:24 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-05 01:26:25 +0100 |
commit | a59d4707bd9eaa4c5aae0195220ff45ad11ec5c9 (patch) | |
tree | 43921c11bc4bbf5e75ba1b0087fa7bc5d7a9bdd1 /sc | |
parent | 1b61693a154bb9c2a2de5e2646893b087eb8f9f4 (diff) |
fix ooxml color export
Change-Id: I4b94883f594e13e9923bdd05593447a152fa8b0a
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xestream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index 5a9d19a32cce..31bcafa1c069 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -756,7 +756,7 @@ rtl::OUString XclXmlUtils::GetStreamName( const char* sStreamDir, const char* sS OString XclXmlUtils::ToOString( const Color& rColor ) { char buf[9]; - sprintf( buf, "%.2X%.2X%.2X%.2X", rColor.GetTransparency(), rColor.GetRed(), rColor.GetGreen(), rColor.GetBlue() ); + sprintf( buf, "%.2X%.2X%.2X%.2X", 0xFF-rColor.GetTransparency(), rColor.GetRed(), rColor.GetGreen(), rColor.GetBlue() ); buf[8] = '\0'; return OString( buf ); } |