diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-02-22 00:21:34 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-22 00:21:34 +0900 |
| commit | 557b165f01dbce29e575dc752b0833b454b45783 (patch) | |
| tree | cbeba90deae056d155c9b15b69040bd278e60655 | |
| parent | 4355b453d4f3c565d43d51b34d62dcb9cc487075 (diff) | |
| parent | b02a3a29f52326bc278448266045eb4240cc07f2 (diff) | |
Merge pull request #2434 from Bond-009/photo
Fix photo serialization
| -rw-r--r-- | MediaBrowser.Controller/Entities/Photo.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/MediaBrowser.Controller/Entities/Photo.cs b/MediaBrowser.Controller/Entities/Photo.cs index 86d62add9..5ebc9f16a 100644 --- a/MediaBrowser.Controller/Entities/Photo.cs +++ b/MediaBrowser.Controller/Entities/Photo.cs @@ -41,10 +41,10 @@ namespace MediaBrowser.Controller.Entities public override double GetDefaultPrimaryImageAspectRatio() { // REVIEW: @bond - if (Width.HasValue && Height.HasValue) + if (Width != 0 && Height != 0) { - double width = Width.Value; - double height = Height.Value; + double width = Width; + double height = Height; if (Orientation.HasValue) { @@ -67,8 +67,6 @@ namespace MediaBrowser.Controller.Entities return base.GetDefaultPrimaryImageAspectRatio(); } - public new int? Width { get; set; } - public new int? Height { get; set; } public string CameraMake { get; set; } public string CameraModel { get; set; } public string Software { get; set; } |
