General: Set default Cyclic Reference behaviour to 1 to eliminate exception when using a single cyclic iteration in formulae

This commit is contained in:
MarkBaker 2014-12-03 08:05:25 +00:00
parent 2b389f97f1
commit 0296daa75c
2 changed files with 3 additions and 2 deletions

View File

@ -214,7 +214,7 @@ class PHPExcel_Calculation {
* @var integer * @var integer
* *
*/ */
public $cyclicFormulaCount = 0; public $cyclicFormulaCount = 1;
/** /**
* Precision used for calculations * Precision used for calculations
@ -2236,7 +2236,7 @@ class PHPExcel_Calculation {
$this->formulaError = null; $this->formulaError = null;
$this->_debugLog->clearLog(); $this->_debugLog->clearLog();
$this->_cyclicReferenceStack->clear(); $this->_cyclicReferenceStack->clear();
$this->_cyclicFormulaCount = 1; $this->_cyclicFormulaCount = 0;
self::$returnArrayAsType = self::RETURN_ARRAY_AS_ARRAY; self::$returnArrayAsType = self::RETURN_ARRAY_AS_ARRAY;
} }

View File

@ -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: (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) 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) - 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: (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: (frost-nzcr4) Work Item GH-403 - ODS read/write comments in the cell
- Feature: (CQD) Work Item GH-389 - Additional Mac CJK codepage definitions - Feature: (CQD) Work Item GH-389 - Additional Mac CJK codepage definitions