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
947947
948948 // Style information?
949949 if (!$ this ->readDataOnly ) {
950- $ holdSelected = $ docSheet ->getSelectedCells ();
951950 $ cAttrS = (int ) ($ cAttr ['s ' ] ?? 0 );
952951 // no style index means 0, it seems
953952 $ cAttrS = isset ($ styles [$ cAttrS ]) ? $ cAttrS : 0 ;
954953 $ cell ->setXfIndex ($ cAttrS );
955954 // issue 3495
956955 if ($ cellDataType === DataType::TYPE_FORMULA && $ styles [$ cAttrS ]->quotePrefix === true ) {
956+ $ holdSelected = $ docSheet ->getSelectedCells ();
957957 $ cell ->getStyle ()->setQuotePrefix (false );
958+ $ docSheet ->setSelectedCells ($ holdSelected );
958959 }
959- $ docSheet ->setSelectedCells ($ holdSelected );
960960 }
961961 }
962962 ++$ rowIndex ;
You can’t perform that action at this time.
0 commit comments