Skip to content

Commit

Permalink
General: Set default Cyclic Reference behaviour to 1 to eliminate exc…
Browse files Browse the repository at this point in the history
…eption when using a single cyclic iteration in formulae
  • Loading branch information
MarkBaker committed Dec 3, 2014
1 parent 2b389f9 commit 0296daa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/PHPExcel/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class PHPExcel_Calculation {
* @var integer
*
*/
public $cyclicFormulaCount = 0;
public $cyclicFormulaCount = 1;

/**
* Precision used for calculations
Expand Down Expand Up @@ -2236,7 +2236,7 @@ public function calculateCellValue(PHPExcel_Cell $pCell = NULL, $resetLog = TRUE
$this->formulaError = null;
$this->_debugLog->clearLog();
$this->_cyclicReferenceStack->clear();
$this->_cyclicFormulaCount = 1;
$this->_cyclicFormulaCount = 0;

self::$returnArrayAsType = self::RETURN_ARRAY_AS_ARRAY;
}
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Planned for v1.8.1
- General: (frost-nzcr4) Work Item GH-379 - Change the getter/setter for zeroHeight to camel case
- General: (MBaker) Work Item GH-394 - DefaultValueBinder is too much aggressive when converting string to numeric
- General: (MBaker) - Default precalculate formulas to false for writers
- General: (MBaker) - Set default Cyclic Reference behaviour to 1 to eliminate exception when using a single cyclic iteration in formulae
- Feature: (WiktrzGE) Work Item GH-404 - Methods to manage most of the existing options for Chart Axis, Major Grid-lines and Minor Grid-lines
- Feature: (frost-nzcr4) Work Item GH-403 - ODS read/write comments in the cell
- Feature: (CQD) Work Item GH-389 - Additional Mac CJK codepage definitions
Expand Down

0 comments on commit 0296daa

Please sign in to comment.