From c066320208da5211abe7e244bd2b045009367518 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 29 Jul 2014 17:23:44 +0200 Subject: Also keep maxY into account when scaling a preview while preserving aspect ratio --- core/ajax/preview.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/ajax') diff --git a/core/ajax/preview.php b/core/ajax/preview.php index d38043707ac..edbd41d2db4 100644 --- a/core/ajax/preview.php +++ b/core/ajax/preview.php @@ -21,10 +21,6 @@ if ($file === '') { exit; } -if ($keepAspect === true) { - $maxY = $maxX; -} - if ($maxX === 0 || $maxY === 0) { //400 Bad Request \OC_Response::setStatus(400); -- cgit v1.2.3