Fix overestimation of max-width when using perrow mode.
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 14 Mar 2011 21:08:32 +0000 (21:08 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 14 Mar 2011 21:08:32 +0000 (21:08 +0000)
commitd3e714647bf1d96009abe39b07a052b47038a87b
tree98418f80637359ea49bf560a21c937c399418522
parent695b5f171fcaea0cd4b6b3efd4e0fa11e112b24a
Fix overestimation of max-width when using perrow mode.
Also use const variables to make this more readable.

Fixes bug 27577
Follow up to r77411
includes/ImageGallery.php
tests/parser/parserTests.txt