From f70a639f04b51a9dd7d4dfd0125373c1e4ba9222 Mon Sep 17 00:00:00 2001 From: NeoCoderMatrix86 <40752681+NeoCoderMatrix86@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:09:05 +0100 Subject: [PATCH] Fixed display of sections for track --- AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs | 2 +- AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs b/AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs index 68ef6766..2c2847f9 100644 --- a/AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs +++ b/AudioCuesheetEditor/Model/AudioCuesheet/Cuesheet.cs @@ -212,7 +212,7 @@ public void RemoveSection(CuesheetSection section) public CuesheetSection? GetSectionAtTrack(Track track) { - return Sections?.FirstOrDefault(x => track.Begin < x.Begin && track.End >= x.Begin); + return Sections?.FirstOrDefault(x => track.Begin <= x.Begin && track.End >= x.Begin); } /// diff --git a/AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor b/AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor index d353d1bb..7a9e30e2 100644 --- a/AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor +++ b/AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor @@ -130,7 +130,6 @@ along with Foobar. If not, see @code { - //TODO: Split point display doesn't work EditTrackModal? modalTrackEdit; Validations? validations; IEnumerable? autocompleteTrackArtists;