diff --git a/Classes/PHPExcel/Cell.php b/Classes/PHPExcel/Cell.php index 521b7bf8..2d5f9102 100644 --- a/Classes/PHPExcel/Cell.php +++ b/Classes/PHPExcel/Cell.php @@ -192,7 +192,7 @@ class PHPExcel_Cell { return (string) PHPExcel_Style_NumberFormat::toFormattedString( $this->getCalculatedValue(), - $this->getWorksheet()->getParent()->getCellXfByIndex($this->getXfIndex()) + $this->getStyle() ->getNumberFormat()->getFormatCode() ); } @@ -535,7 +535,7 @@ class PHPExcel_Cell */ public function getStyle() { - return $this->getWorksheet()->getParent()->getCellXfByIndex($this->getXfIndex()); + return $this->getWorksheet()->getStyle($this->getCoordinate()); } /** diff --git a/changelog.txt b/changelog.txt index 12794548..bf13da49 100644 --- a/changelog.txt +++ b/changelog.txt @@ -32,6 +32,7 @@ Planned for v1.8.1 - Bugfix: (MBaker) Work Item GH-388 - Fix to autoloader registration for backward compatibility with PHP 5.2.0 not accepting the prepend flag - Bugfix: (MBaker) Work Item GH-384 - DOM loadHTMLFile() failing with options flags when using PHP < 5.4.0 - Bugfix: (MBaker) - Fix for percentage operator in formulae for BIFF Writer +- Bugfix: (MBaker) - Fix to getStyle() call for cell object - General: (MBaker) - Small performance improvement for autosize columns - General: (frost-nzcr4) Work Item GH-379 - Change the getter/setter for zeroHeight to camel case - Feature: (WiktrzGE) Work Item GH-404 - Methods to manage most of the existing options for Chart Axis, Major Grid-lines and Minor Grid-lines