From bddfca621529ff894d44e07dc4ca546dfce75e2d Mon Sep 17 00:00:00 2001 From: hawken Date: Tue, 8 Jan 2019 22:48:08 +0000 Subject: [PATCH] Fix potential problem where aspect ratio would be incorrectly calculated --- MediaBrowser.Controller/Entities/Photo.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MediaBrowser.Controller/Entities/Photo.cs b/MediaBrowser.Controller/Entities/Photo.cs index 662aa42495..074a1f4f76 100644 --- a/MediaBrowser.Controller/Entities/Photo.cs +++ b/MediaBrowser.Controller/Entities/Photo.cs @@ -79,8 +79,7 @@ namespace MediaBrowser.Controller.Entities } } - width /= Height.Value; - return width; + return width / height; } return base.GetDefaultPrimaryImageAspectRatio();