The Free Software Media System - Server Backend & API
Fix photo serialization
Bond-009b02a3a29f523
diff --git a/MediaBrowser.Controller/Entities/Photo.cs b/MediaBrowser.Controller/Entities/Photo.csindex 86d62add97..5ebc9f16ad 100644--- a/MediaBrowser.Controller/Entities/Photo.cs+++ b/MediaBrowser.Controller/Entities/Photo.cs@@ -41,10 +41,10 @@ namespace MediaBrowser.Controller.Entitiespublic 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.Entitiesreturn 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; }