mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
fix(tracker): prevent crashing when deleting notes without order list entry
Closes #59
This commit is contained in:
parent
4ce6abe1e8
commit
8c7349de12
@ -614,6 +614,9 @@ func (m *Model) DeleteSelection() {
|
||||
for r := r1; r <= r2; r++ {
|
||||
s := SongRow{Row: r}.Wrap(m.song.Score)
|
||||
for c := t1; c <= t2; c++ {
|
||||
if len(m.song.Score.Tracks[c].Order) <= s.Pattern {
|
||||
continue
|
||||
}
|
||||
p := m.song.Score.Tracks[c].Order[s.Pattern]
|
||||
if p < 0 {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user