From 592dd2b7e57dfd6e449b656b29bd06b7e58d3f19 Mon Sep 17 00:00:00 2001 From: Ryan Kaldari Date: Mon, 4 Jul 2011 21:05:27 +0000 Subject: [PATCH] fixing rounding problem, per comment at r82309 --- includes/ImageGallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1