Skip to content

Commit

Permalink
1.8.1.1 - Defaulting zoom scale rather than throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
James Leslie committed Oct 10, 2017
1 parent 372c7cb commit 66570a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/PHPExcel/Worksheet/SheetView.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function setZoomScale($pValue = 100) {
if (($pValue >= 1) || is_null($pValue)) {
$this->_zoomScale = $pValue;
} else {
throw new PHPExcel_Exception("Scale must be greater than or equal to 1.");
$this->_zoomScale = 100;
}
return $this;
}
Expand All @@ -132,7 +132,7 @@ public function setZoomScaleNormal($pValue = 100) {
if (($pValue >= 1) || is_null($pValue)) {
$this->_zoomScaleNormal = $pValue;
} else {
throw new PHPExcel_Exception("Scale must be greater than or equal to 1.");
$this->_zoomScaleNormal = 100;
}
return $this;
}
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "phpoffice/phpexcel",
"description": "PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine",
"keywords": ["PHP","Excel","OpenXML","xlsx","xls","spreadsheet"],
"homepage": "http://phpexcel.codeplex.com",
"homepage": "http://github.com/eventfarm/phpexcel",
"type": "library",
"license": "LGPL",
"authors": [
Expand All @@ -19,6 +19,9 @@
},
{
"name": "Erik Tilt"
},
{
"name": "James Leslie"
}
],
"require": {
Expand Down

0 comments on commit 66570a6

Please sign in to comment.