Skip to content

Commit

Permalink
Fix #313771: Switching instruments from an instrument with tabulature…
Browse files Browse the repository at this point in the history
… in a linked staff to one that does not support tablature causes crash
  • Loading branch information
Jojo-Schmitz authored and vpereverzev committed Dec 1, 2020
1 parent aca3c25 commit deb8b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/stringdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void StringData::fretChords(Chord* chord) const

// check for any remaining fret conflict
foreach (Note* note, sortedNotes) {
if (bUsed[note->string()] > 1) {
if (note->string() == -1 || bUsed[note->string()] > 1) {
note->setFretConflict(true);
}
}
Expand Down

0 comments on commit deb8b6d

Please sign in to comment.