File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/PhpSpreadsheet/Worksheet Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -685,7 +685,6 @@ public function calculateColumnWidths(): static
685
685
{
686
686
$ activeSheet = $ this ->getParent ()?->getActiveSheetIndex();
687
687
$ selectedCells = $ this ->selectedCells ;
688
- $ activeCell = $ this ->activeCell ;
689
688
// initialize $autoSizes array
690
689
$ autoSizes = [];
691
690
foreach ($ this ->getColumnDimensions () as $ colDimension ) {
@@ -786,8 +785,7 @@ public function calculateColumnWidths(): static
786
785
if ($ activeSheet !== null && $ activeSheet >= 0 ) {
787
786
$ this ->getParent ()?->setActiveSheetIndex($ activeSheet );
788
787
}
789
- $ this ->selectedCells = $ selectedCells ;
790
- $ this ->activeCell = $ activeCell ;
788
+ $ this ->setSelectedCells ($ selectedCells );
791
789
792
790
return $ this ;
793
791
}
You can’t perform that action at this time.
0 commit comments