Skip to content

Commit

Permalink
Fix setAutoSize() default column number
Browse files Browse the repository at this point in the history
  • Loading branch information
yidas committed Mar 29, 2018
1 parent 310c862 commit f70a7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phpSpreadsheet/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ public static function setAutoSize($colAlphaStart=NULL, $colAlphaEnd=NULL, $valu
{
$sheetObj = self::validSheetObj();

$colStart = ($colAlphaStart) ? self::alpha2num($colAlphaStart) : self::$_offsetCol;
$colStart = ($colAlphaStart) ? self::alpha2num($colAlphaStart) : self::$_offsetCol + 1;
$colEnd = ($colAlphaEnd)
? self::alpha2num($colAlphaEnd)
: self::alpha2num($sheetObj->getHighestColumn());
Expand Down

0 comments on commit f70a7d3

Please sign in to comment.