From 1238c6086d50da666b0ed7218b223867a8d4b4b9 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Mon, 6 Dec 2010 12:45:41 +0000 Subject: [PATCH] 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 --- Classes/PHPExcel/Style/Borders.php | 6 ++++++ changelog.txt | 1 + 2 files changed, 7 insertions(+) diff --git a/Classes/PHPExcel/Style/Borders.php b/Classes/PHPExcel/Style/Borders.php index 897507dc..7c03b324 100644 --- a/Classes/PHPExcel/Style/Borders.php +++ b/Classes/PHPExcel/Style/Borders.php @@ -315,6 +315,12 @@ class PHPExcel_Style_Borders implements PHPExcel_IComparable if (array_key_exists('diagonaldirection', $pStyles)) { $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 { throw new Exception("Invalid style array passed."); diff --git a/changelog.txt b/changelog.txt index 3ab43660..e98b65b9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -57,6 +57,7 @@ Fixed in SVN: - 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 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 7169 - Removed spurious PHP end tags (?>) - General: (MBaker) Improved performance (speed) and reduced memory overheads, particularly for the Writers, but across the whole library.