Minor tweak to fix colours from the pallette index

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@86741 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker
2012-02-21 17:28:37 +00:00
parent 9b462e941d
commit 3392f46985
5 changed files with 62 additions and 62 deletions
+2 -2
View File
@@ -51,11 +51,11 @@ class PHPExcel_Reader_Excel2007_Chart
} // function _getAttribute()
private static function _readColor($color) {
private static function _readColor($color,$background=false) {
if (isset($color["rgb"])) {
return (string)$color["rgb"];
} else if (isset($color["indexed"])) {
return PHPExcel_Style_Color::indexedColor($color["indexed"])->getARGB();
return PHPExcel_Style_Color::indexedColor($color["indexed"]-7,$background)->getARGB();
}
}