瀏覽代碼

fix square images not getting proper thumbnails

tags/v4.0.0beta
Robin Appelman 12 年之前
父節點
當前提交
266699ddf9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/image.php

+ 1
- 1
lib/image.php 查看文件

@@ -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;

Loading…
取消
儲存