Merge pull request #8455 from owncloud/preview-scaleup

Dont create borders around previews when scaling up is disabled
This commit is contained in:
icewind1991 2014-05-05 18:24:20 +02:00
commit bd92b94c6a
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ class Preview {
return;
}
if ($newXSize < $x || $newYSize < $y) {
if (($newXSize < $x || $newYSize < $y) && $scalingUp) {
if ($newXSize > $x) {
$cropX = floor(($newXSize - $x) * 0.5);
$image->crop($cropX, 0, $x, $newYSize);