fix square images not getting proper thumbnails

This commit is contained in:
Robin Appelman 2012-03-27 00:42:15 +02:00
parent 128d446f39
commit 266699ddf9
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ class OC_Image {
}
$width_orig=imageSX($this->resource);
$height_orig=imageSY($this->resource);
if($width_orig === $height_orig) {
if($width_orig === $height_orig and $size==0) {
return true;
}
$ratio_orig = $width_orig/$height_orig;