aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Kaldari <kaldari@users.mediawiki.org>2011-07-04 21:05:27 +0000
committerRyan Kaldari <kaldari@users.mediawiki.org>2011-07-04 21:05:27 +0000
commit592dd2b7e57dfd6e449b656b29bd06b7e58d3f19 (patch)
treeaecfa486005ed24780625927ab68e57c5e121499
parenta2d41b8d6fdfc4957736f7ecb2311f80451abc09 (diff)
downloadmediawikicore-592dd2b7e57dfd6e449b656b29bd06b7e58d3f19.tar.gz
mediawikicore-592dd2b7e57dfd6e449b656b29bd06b7e58d3f19.zip
fixing rounding problem, per comment at r82309
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/91426
-rw-r--r--includes/ImageGallery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php
index d3773007a640..920ef059fb35 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,