Page MenuHomeIn-Portal Phabricator

D370.id961.diff
No OneTemporary

File Metadata

Created
Sat, Sep 27, 12:21 AM

D370.id961.diff

Index: branches/5.2.x/core/units/helpers/image_helper.php
===================================================================
--- branches/5.2.x/core/units/helpers/image_helper.php
+++ branches/5.2.x/core/units/helpers/image_helper.php
@@ -490,8 +490,8 @@
$ratio = min($width_ratio, $height_ratio);
}
- $width = ceil($orig_width * $ratio);
- $height = ceil($orig_height * $ratio);
+ $width = (int)round($orig_width * $ratio);
+ $height = (int)round($orig_height * $ratio);
}
else {
$width = $orig_width;

Event Timeline