Skip to content

Commit

Permalink
Fix wrong calculation of highest column (#856)
Browse files Browse the repository at this point in the history
* Fix wrong calculation of highest column

issue #700

* Revert "Fix wrong calculation of highest column"

This reverts commit ef39af1.

* Revert "Revert "Fix wrong calculation of highest column""

This reverts commit d13493e.

* Revert Xlsx reader

* Fix indentation
  • Loading branch information
BenKewell authored and Mark Baker committed Feb 17, 2019
1 parent a8642a2 commit d2bbb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Collection/Cells.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function getHighestColumn($row = null)
$columnList[] = Coordinate::columnIndexFromString($c);
}

return Coordinate::stringFromColumnIndex(max($columnList) + 1);
return Coordinate::stringFromColumnIndex(max($columnList));
}

/**
Expand Down

0 comments on commit d2bbb6c

Please sign in to comment.