From: Ryan Kaldari Date: Mon, 4 Jul 2011 21:05:27 +0000 (+0000) Subject: fixing rounding problem, per comment at r82309 X-Git-Tag: 1.31.0-rc.0~29077 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=592dd2b7e57dfd6e449b656b29bd06b7e58d3f19;p=lhc%2Fweb%2Fwiklou.git fixing rounding problem, per comment at r82309 --- diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index d3773007a6..920ef059fb 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -284,7 +284,7 @@ class ImageGallery { # We get layout problems with the margin, if the image is smaller # than the line-height (17), so we add less margin in these cases. $minThumbHeight = $thumb->height > 17 ? $thumb->height : 17; - $vpad = floor( ( self::THUMB_PADDING + $this->mHeights - $minThumbHeight ) /2 ); + $vpad = ( self::THUMB_PADDING + $this->mHeights - $minThumbHeight ) /2; $imageParameters = array( 'desc-link' => true,