Kaydet (Commit) 83120950 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

work around Excel bug with negative bar theme based color

Change-Id: Id1276dc0e68b46158b750c96aad8afc24fb18743
üst 41df7db9
......@@ -179,6 +179,13 @@ namespace {
else if( rAttribs.hasAttribute( XML_theme ) )
{
sal_uInt32 nThemeIndex = rAttribs.getUnsigned( XML_theme, 0 );
// looks like an Excel bug
if (nThemeIndex == 0)
nThemeIndex = 1;
else if (nThemeIndex == 1)
nThemeIndex = 0;
nColor = rThemeBuffer.getColorByIndex( nThemeIndex );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment