Skip to content

Commit 080c947

Browse files
committed
bug fix
1 parent 6374c69 commit 080c947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ImageResize.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ public function freecrop($width, $height, $x = false, $y = false)
428428
$this->source_w = $width;
429429
}
430430

431-
if($height > $this->getSourceHeight() - $h){
432-
$this->source_h = $this->getSourceHeight() - $h;
431+
if($height > $this->getSourceHeight() - $y){
432+
$this->source_h = $this->getSourceHeight() - $y;
433433
} else {
434434
$this->source_h = $height;
435435
}

0 commit comments

Comments
 (0)