From d2bbb6cd8e1c5f63cdbd2716705e2e3badfb249d Mon Sep 17 00:00:00 2001 From: Benjamin Yau Date: Mon, 18 Feb 2019 01:32:45 +0800 Subject: [PATCH] Fix wrong calculation of highest column (#856) * Fix wrong calculation of highest column issue #700 * Revert "Fix wrong calculation of highest column" This reverts commit ef39af1cb6bac8f3101aa52a6336d736910d387b. * Revert "Revert "Fix wrong calculation of highest column"" This reverts commit d13493ecbedf57253448438311c1d04a3ebdb65e. * Revert Xlsx reader * Fix indentation --- src/PhpSpreadsheet/Collection/Cells.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Collection/Cells.php b/src/PhpSpreadsheet/Collection/Cells.php index 80a4322098..465a0698c6 100644 --- a/src/PhpSpreadsheet/Collection/Cells.php +++ b/src/PhpSpreadsheet/Collection/Cells.php @@ -259,7 +259,7 @@ public function getHighestColumn($row = null) $columnList[] = Coordinate::columnIndexFromString($c); } - return Coordinate::stringFromColumnIndex(max($columnList) + 1); + return Coordinate::stringFromColumnIndex(max($columnList)); } /**