Browse Source

Fix potential problem where aspect ratio would be incorrectly calculated

hawken 6 years ago
parent
commit
bddfca6215
1 changed files with 1 additions and 2 deletions
  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();