summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-29 17:23:44 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-07-30 13:52:40 +0200
commitc066320208da5211abe7e244bd2b045009367518 (patch)
tree908b5f6aee85d8313b077f550cb809fdab6400df /core/ajax
parent06d118d06c0def5a33aab64c6a2c20f79944b378 (diff)
downloadnextcloud-server-c066320208da5211abe7e244bd2b045009367518.tar.gz
nextcloud-server-c066320208da5211abe7e244bd2b045009367518.zip
Also keep maxY into account when scaling a preview while preserving aspect ratio
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/preview.php4
1 files changed, 0 insertions, 4 deletions
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);