Bugfix: Work item 14831 - Style : applyFromArray() for 'allborders' not working

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@64875 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2010-12-06 12:45:41 +00:00
parent 9cacc2fda7
commit 1238c6086d
2 changed files with 7 additions and 0 deletions

View File

@ -315,6 +315,12 @@ class PHPExcel_Style_Borders implements PHPExcel_IComparable
if (array_key_exists('diagonaldirection', $pStyles)) { if (array_key_exists('diagonaldirection', $pStyles)) {
$this->setDiagonalDirection($pStyles['diagonaldirection']); $this->setDiagonalDirection($pStyles['diagonaldirection']);
} }
if (array_key_exists('allborders', $pStyles)) {
$this->getLeft()->applyFromArray($pStyles['allborders']);
$this->getRight()->applyFromArray($pStyles['allborders']);
$this->getTop()->applyFromArray($pStyles['allborders']);
$this->getBottom()->applyFromArray($pStyles['allborders']);
}
} }
} else { } else {
throw new Exception("Invalid style array passed."); throw new Exception("Invalid style array passed.");

View File

@ -57,6 +57,7 @@ Fixed in SVN:
- Bugfix: (MBaker) Work item 14425 - Wrong exception message while deleting column - Bugfix: (MBaker) Work item 14425 - Wrong exception message while deleting column
- Bugfix: (MBaker) Work item 14679 - Formula evaluation fails with Japanese sheet refs - Bugfix: (MBaker) Work item 14679 - Formula evaluation fails with Japanese sheet refs
- Bugfix: (MBaker) Work item 13559 - PHPExcel_Writer_PDF does not handle cell borders correctly - Bugfix: (MBaker) Work item 13559 - PHPExcel_Writer_PDF does not handle cell borders correctly
- Bugfix: (MBaker) Work item 14831 - Style : applyFromArray() for 'allborders' not working
- General: (MBaker) Applied patch 6609 - Removes a unnecessary loop through each cell when applying conditional formatting to a range. - General: (MBaker) Applied patch 6609 - Removes a unnecessary loop through each cell when applying conditional formatting to a range.
- General: (MBaker) Applied patch 7169 - Removed spurious PHP end tags (?>) - General: (MBaker) Applied patch 7169 - Removed spurious PHP end tags (?>)
- General: (MBaker) Improved performance (speed) and reduced memory overheads, particularly for the Writers, but across the whole library. - General: (MBaker) Improved performance (speed) and reduced memory overheads, particularly for the Writers, but across the whole library.