mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-24 09:09:22 +00:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user