From df592cc7c46249e3cda8ee92a3bea33c67535222 Mon Sep 17 00:00:00 2001 From: Gemorroj Date: Fri, 15 Nov 2013 12:29:21 +0300 Subject: [PATCH] When duplicating styles, styles shifted by one column to the right. PHPExcel_Cell::rangeBoundaries -> PHPExcel_Cell::columnIndexFromString (Column index (base 1 !!!)) PHPExcel_Cell::stringFromColumnIndex Column index (base 0 !!!) --- Classes/PHPExcel/Worksheet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Worksheet.php b/Classes/PHPExcel/Worksheet.php index c3d53647..493b462b 100644 --- a/Classes/PHPExcel/Worksheet.php +++ b/Classes/PHPExcel/Worksheet.php @@ -1512,7 +1512,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable // Loop through cells and apply styles for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { - $this->getCell(PHPExcel_Cell::stringFromColumnIndex($col) . $row)->setXfIndex($xfIndex); + $this->getCell(PHPExcel_Cell::stringFromColumnIndex($col - 1) . $row)->setXfIndex($xfIndex); } }