Skip to content

Commit

Permalink
BUGFIX: Correct access to asset-width
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Jul 17, 2018
1 parent 699dad8 commit 8781326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/EelHelpers/AssetImageSourceHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function getCurrentWidth() : int
} elseif ($this->targetHeight) {
return round($this->targetHeight * $this->asset->getWidth() / $this->asset->getHeight());
} else {
return $this->baseWidth;
return $this->asset->getWidth();
}
}

Expand All @@ -131,7 +131,7 @@ public function getCurrentHeight() : int
} elseif ($this->targetWidth) {
return round($this->targetWidth * $this->asset->getHeight() / $this->asset->getWidth());
} else {
return $this->baseHeight;
return $this->asset->getHeight();
}
}
}

0 comments on commit 8781326

Please sign in to comment.