Explorar o código

Fix potential problem where aspect ratio would be incorrectly calculated

hawken %!s(int64=6) %!d(string=hai) anos
pai
achega
bddfca6215
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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();