diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-01-15 22:37:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-15 22:37:01 -0500 |
| commit | 5b1f36ef27fb3629d13fad6494a99990f647d103 (patch) | |
| tree | 03d0032d9111ef0b575f95e20175181b7f3e6f10 | |
| parent | b30d70278288d516366651dc1f97403d1a4b71a5 (diff) | |
| parent | bddfca621529ff894d44e07dc4ca546dfce75e2d (diff) | |
Merge pull request #520 from hawken93/fix_aspect
Fix potential bug where aspect ratio would be incorrectly calculated
| -rw-r--r-- | MediaBrowser.Controller/Entities/Photo.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/Photo.cs b/MediaBrowser.Controller/Entities/Photo.cs index 662aa4249..074a1f4f7 100644 --- a/MediaBrowser.Controller/Entities/Photo.cs +++ b/MediaBrowser.Controller/Entities/Photo.cs @@ -79,8 +79,7 @@ namespace MediaBrowser.Controller.Entities } } - width /= Height.Value; - return width; + return width / height; } return base.GetDefaultPrimaryImageAspectRatio(); |
