Skip to content

Commit

Permalink
Manually merged #6184 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-os committed Aug 7, 2020
1 parent 68bc6f3 commit 38d2e8c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libmscore/note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,15 @@ SymId Note::noteHead() const
if (_headGroup == NoteHead::Group::HEAD_CUSTOM) {
if (st) {
if (st->staffTypeForElement(chord())->isDrumStaff()) {
return st->part()->instrument(chord()->tick())->drumset()->noteHeads(_pitch, ht);
Fraction t = chord()->tick();
Instrument* inst = st->part()->instrument(t);
Drumset* d = inst->drumset();
if (d) {
return d->noteHeads(_pitch, ht);
} else {
qDebug("no drumset");
return noteHead(up, NoteHead::Group::HEAD_NORMAL, ht);
}
}
} else {
return _cachedNoteheadSym;
Expand Down

0 comments on commit 38d2e8c

Please sign in to comment.