Parcourir la source

Merge pull request #520 from hawken93/fix_aspect

Fix potential bug where aspect ratio would be incorrectly calculated
Joshua M. Boniface il y a 6 ans
Parent
commit
5b1f36ef27
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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();