Bugfix: When duplicating conditional styles, styles shifted by one column to the right

This commit is contained in:
Mark Baker
2013-11-15 19:24:51 +00:00
parent 1a85271db6
commit 968bfef0a2
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1550,7 +1550,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->setConditionalStyles(PHPExcel_Cell::stringFromColumnIndex($col) . $row, $pCellStyle);
$this->setConditionalStyles(PHPExcel_Cell::stringFromColumnIndex($col - 1) . $row, $pCellStyle);
}
}