We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b051d49 commit 1253f35Copy full SHA for 1253f35
src/PhpSpreadsheet/Cell/Cell.php
@@ -385,10 +385,10 @@ public function getCalculatedValue(bool $resetLog = true): mixed
385
386
if ($this->dataType === DataType::TYPE_FORMULA) {
387
try {
388
+ $index = $this->getWorksheet()->getParentOrThrow()->getActiveSheetIndex();
389
+ $selected = $this->getWorksheet()->getSelectedCells();
390
$thisworksheet = $this->getWorksheet();
391
$title = $thisworksheet->getTitle();
- $index = $thisworksheet->getParentOrThrow()->getActiveSheetIndex();
- $selected = $thisworksheet->getSelectedCells();
392
$result = Calculation::getInstance(
393
$thisworksheet->getParent()
394
)->calculateCellValue($this, $resetLog);
0 commit comments