소스 검색

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();