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

work around Excel theme color bug, tdf#98554

Change-Id: Id0cd37b37394a0759ee6ffccafd8def719c14312
üst ee2f723e
......@@ -194,14 +194,17 @@ namespace {
{
sal_uInt32 nThemeIndex = rAttribs.getUnsigned( XML_theme, 0 );
// looks like an Excel bug
// Excel has a bug in the mapping of index 0, 1, 2 and 3.
if (nThemeIndex == 0)
nThemeIndex = 1;
else if (nThemeIndex == 1)
nThemeIndex = 0;
else if (nThemeIndex == 2)
nThemeIndex = 3;
else if (nThemeIndex == 3)
nThemeIndex = 2;
nColor = rThemeBuffer.getColorByIndex( nThemeIndex );
}
::Color aColor;
......
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