fixing rounding problem, per comment at r82309
authorRyan Kaldari <kaldari@users.mediawiki.org>
Mon, 4 Jul 2011 21:05:27 +0000 (21:05 +0000)
committerRyan Kaldari <kaldari@users.mediawiki.org>
Mon, 4 Jul 2011 21:05:27 +0000 (21:05 +0000)
includes/ImageGallery.php

index d377300..920ef05 100644 (file)
@@ -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,