浏览代码

Merge pull request #520 from hawken93/fix_aspect

Fix potential bug where aspect ratio would be incorrectly calculated
Joshua M. Boniface 6 年之前
父节点
当前提交
5b1f36ef27
共有 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();
             return base.GetDefaultPrimaryImageAspectRatio();