소스 검색

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