From e06932e0e4b551c1ed0bbf677899e8ae5aeb453b Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sun, 12 Sep 2010 22:46:15 +0000 Subject: [PATCH] Bugfix: Workitem 14226 - unassigned object variable in PHPExcel->removeCellXfByIndex git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@60892 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel.php | 2 +- changelog.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/PHPExcel.php b/Classes/PHPExcel.php index fe81333..27a1853 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 ce8b91e..ff1ac51 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):