diff --git a/Classes/PHPExcel.php b/Classes/PHPExcel.php index fe813337..27a1853d 100644 --- a/Classes/PHPExcel.php +++ b/Classes/PHPExcel.php @@ -628,7 +628,7 @@ class PHPExcel // then update cellXf indexes for cells foreach ($this->_workSheetCollection as $worksheet) { foreach ($worksheet->getCellCollection(false) as $cellID) { - $cell = $sheet->getCell($cellID); + $cell = $worksheet->getCell($cellID); $xfIndex = $cell->getXfIndex(); if ($xfIndex > $pIndex ) { // decrease xf index by 1 diff --git a/changelog.txt b/changelog.txt index ce8b91ef..ff1ac51d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -37,6 +37,7 @@ Fixed in SVN: - Bugfix: (MBaker) Workitem 12998 - PHPExcel_Reader_Excel2007 fails when gradient fill without type is present in a file - Bugfix: (MBaker) Workitem 14176 - @ format for numeric strings in XLSX to CSV conversion - Bugfix: (MBaker) Workitem 14223 - Advanced Value Binder Not Working? +- Bugfix: (MBaker) Workitem 14226 - unassigned object variable in PHPExcel->removeCellXfByIndex 2010-08-26 (v1.7.4):