瀏覽代碼

Fix potential problem where aspect ratio would be incorrectly calculated

hawken 6 年之前
父節點
當前提交
bddfca6215
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      MediaBrowser.Controller/Entities/Photo.cs

+ 1 - 2
MediaBrowser.Controller/Entities/Photo.cs

@@ -79,8 +79,7 @@ namespace MediaBrowser.Controller.Entities
                     }
                 }
 
-                width /= Height.Value;
-                return width;
+                return width / height;
             }
 
             return base.GetDefaultPrimaryImageAspectRatio();