Преглед изворни кода

Fix potential problem where aspect ratio would be incorrectly calculated

hawken пре 6 година
родитељ
комит
bddfca6215
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();