Selaa lähdekoodia

Fix potential problem where aspect ratio would be incorrectly calculated

hawken 6 vuotta sitten
vanhempi
sitoutus
bddfca6215
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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();
             return base.GetDefaultPrimaryImageAspectRatio();