Small Optimization

This commit is contained in:
oleibman
2024-08-31 03:12:44 -07:00
parent 60ca6c787c
commit 16e557350f
+2 -2
View File
@@ -947,16 +947,16 @@ class Xlsx extends BaseReader
// Style information?
if (!$this->readDataOnly) {
$holdSelected = $docSheet->getSelectedCells();
$cAttrS = (int) ($cAttr['s'] ?? 0);
// no style index means 0, it seems
$cAttrS = isset($styles[$cAttrS]) ? $cAttrS : 0;
$cell->setXfIndex($cAttrS);
// issue 3495
if ($cellDataType === DataType::TYPE_FORMULA && $styles[$cAttrS]->quotePrefix === true) {
$holdSelected = $docSheet->getSelectedCells();
$cell->getStyle()->setQuotePrefix(false);
$docSheet->setSelectedCells($holdSelected);
}
$docSheet->setSelectedCells($holdSelected);
}
}
++$rowIndex;