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

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

View File

@ -33,6 +33,7 @@ Fixed in develop branch for release v1.8.0:
Would also have affected insert/delete column/row
- Bugfix: (RomanSyroeshko) Work Item GH-267 - CHOOSE() returns "#VALUE!" if the 1st entry is chosen
- Bugfix: (Gemorroj) Work Item GH-268 - When duplicating styles, styles shifted by one column to the right
Fix also applied to duplicating conditional styles
- Feature: (amerov) - Implementation of the Excel HLOOKUP() function
- Feature: (MBaker) - Added "Quote Prefix" to style settings (Excel2007 Reader and Writer only)
- Feature: (MBaker) - Added Horizontal FILL alignment for Excel5 and Excel2007 Readers/Writers, and Horizontal DISTRIBUTED alignment for Excel2007 Reader/Writer