@@ -943,6 +943,7 @@ SymId Note::noteHead() const
943
943
944
944
const Staff* st = chord () ? chord ()->staff () : nullptr ;
945
945
946
+ NoteHeadGroup headGroup = m_headGroup;
946
947
if (m_headGroup == NoteHeadGroup::HEAD_CUSTOM) {
947
948
if (st) {
948
949
if (st->staffTypeForElement (chord ())->isDrumStaff ()) {
@@ -955,6 +956,8 @@ SymId Note::noteHead() const
955
956
LOGD (" no drumset" );
956
957
return noteHead (up, NoteHeadGroup::HEAD_NORMAL, ht);
957
958
}
959
+ } else {
960
+ headGroup = NoteHeadGroup::HEAD_NORMAL;
958
961
}
959
962
} else {
960
963
return ldata ()->cachedNoteheadSym .value ();
@@ -975,9 +978,9 @@ SymId Note::noteHead() const
975
978
if (scheme == NoteHeadScheme::HEAD_AUTO) {
976
979
scheme = NoteHeadScheme::HEAD_NORMAL;
977
980
}
978
- SymId t = noteHead (up, m_headGroup , ht, tpc (), key, scheme);
981
+ SymId t = noteHead (up, headGroup , ht, tpc (), key, scheme);
979
982
if (t == SymId::noSym) {
980
- LOGD (" invalid notehead %d/%d" , int (m_headGroup ), int (ht));
983
+ LOGD (" invalid notehead %d/%d" , int (headGroup ), int (ht));
981
984
t = noteHead (up, NoteHeadGroup::HEAD_NORMAL, ht);
982
985
}
983
986
return t;
0 commit comments