mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-24 09:09:22 +00:00
Bugfix: Work item 15786 - RangeToArray strange array keys
and Minor performance tweak to the workbook setActiveSheetIndexByName() method git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@72435 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
@@ -2176,11 +2176,12 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
|
||||
$maxCol++;
|
||||
|
||||
// Loop through rows
|
||||
$r = -1;
|
||||
for ($row = $minRow; $row <= $maxRow; ++$row) {
|
||||
$rRef = ($returnCellRef) ? $row : ++$r;
|
||||
$c = -1;
|
||||
// Loop through columns in the current row
|
||||
for ($col = $minCol; $col != $maxCol; ++$col) {
|
||||
$rRef = ($returnCellRef) ? $row : $row-1;
|
||||
$cRef = ($returnCellRef) ? $col : ++$c;
|
||||
// Using getCell() will create a new cell if it doesn't already exist. We don't want that to happen
|
||||
// so we test and retrieve directly against _cellCollection
|
||||
|
||||
Reference in New Issue
Block a user