Skip to content

Commit

Permalink
BUGFIX: Image sources apply width and height definitions correctly in…
Browse files Browse the repository at this point in the history
… Fusion
  • Loading branch information
mficzel committed Sep 21, 2018
1 parent 3ca6371 commit 8195b0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/FusionObjects/AbstractImageSourceImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ public function evaluate() : ?ImageSourceHelperInterface
}

if ($preset = $this->getPreset()) {
$helper->applyPreset($preset);
$helper = $helper->applyPreset($preset);
}

if ($width = $this->getWidth()) {
$helper->setWidth($width);
$helper = $helper->setWidth($width);
}

if ($height = $this->getHeight()) {
$helper->setHeight($height);
$helper = $helper->setHeight($height);
}

return $helper;
Expand Down

0 comments on commit 8195b0d

Please sign in to comment.