[Libreoffice-commits] .: Branch 'distro/suse/suse-3.6' - sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Nov 7 02:09:16 PST 2012
sc/source/filter/excel/xestream.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 17f3f576b2d01c4fd975bc5044549526ac9ec832
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Nov 5 01:01:24 2012 +0100
fix ooxml color export
Change-Id: I4b94883f594e13e9923bdd05593447a152fa8b0a
Signed-off-by: Kohei Yoshida <kohei.yoshida at gmail.com>
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx
index 67df56f..d2686d6 100644
--- a/sc/source/filter/excel/xestream.cxx
+++ b/sc/source/filter/excel/xestream.cxx
@@ -757,7 +757,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 );
}
More information about the Libreoffice-commits
mailing list