diff --git a/AudioCuesheetEditor/Model/IO/Export/CuesheetSection.cs b/AudioCuesheetEditor/Model/IO/Export/CuesheetSection.cs index 4166b017..8fc38bc7 100644 --- a/AudioCuesheetEditor/Model/IO/Export/CuesheetSection.cs +++ b/AudioCuesheetEditor/Model/IO/Export/CuesheetSection.cs @@ -37,6 +37,13 @@ public CuesheetSection(Cuesheet cuesheet) artist = Cuesheet.Artist; title = Cuesheet.Title; audiofileName = Cuesheet.Audiofile?.Name; + //Try to set begin + begin = Cuesheet.Sections?.FirstOrDefault()?.End; + if (Begin.HasValue == false) + { + begin = Cuesheet.Tracks.Min(x => x.Begin); + } + end = Cuesheet.Tracks.Max(x => x.End); } [JsonConstructor]