Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #329 from sarciszewski/patch-2
Browse files Browse the repository at this point in the history
Update BaseDrawing.php
  • Loading branch information
Mark Baker committed Jul 14, 2014
2 parents b21fdba + be24d5d commit 311d03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Worksheet/BaseDrawing.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public function getHeight() {
public function setHeight($pValue = 0) {
// Resize proportional?
if ($this->_resizeProportional && $pValue != 0) {
$ratio = $this->_width / $this->_height;
$ratio = $this->_width / ($this->_height !== 0 ? $this->_height : 1);
$this->_width = round($ratio * $pValue);
}

Expand Down

0 comments on commit 311d03b

Please sign in to comment.