Merge pull request #268 from Gemorroj/patch-1

When duplicating styles, styles shifted by one column to the right.
This commit is contained in:
Mark Baker 2013-11-15 11:08:15 -08:00
commit 8c0de39be2

View File

@ -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);
}
}