File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/PhpSpreadsheet/Reader Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -947,16 +947,16 @@ protected function loadSpreadsheetFromFile(string $filename): Spreadsheet
947
947
948
948
// Style information?
949
949
if (!$ this ->readDataOnly ) {
950
- $ holdSelected = $ docSheet ->getSelectedCells ();
951
950
$ cAttrS = (int ) ($ cAttr ['s ' ] ?? 0 );
952
951
// no style index means 0, it seems
953
952
$ cAttrS = isset ($ styles [$ cAttrS ]) ? $ cAttrS : 0 ;
954
953
$ cell ->setXfIndex ($ cAttrS );
955
954
// issue 3495
956
955
if ($ cellDataType === DataType::TYPE_FORMULA && $ styles [$ cAttrS ]->quotePrefix === true ) {
956
+ $ holdSelected = $ docSheet ->getSelectedCells ();
957
957
$ cell ->getStyle ()->setQuotePrefix (false );
958
+ $ docSheet ->setSelectedCells ($ holdSelected );
958
959
}
959
- $ docSheet ->setSelectedCells ($ holdSelected );
960
960
}
961
961
}
962
962
++$ rowIndex ;
You can’t perform that action at this time.
0 commit comments