Skip to content

Commit

Permalink
fix #11915: 1.X score with E#'s displaying as F#'s
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jun 19, 2013
1 parent dbe62fa commit 7c7ca30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/note.cpp
Expand Up @@ -1396,8 +1396,8 @@ void Note::layout10(AccidentalState* as)
acci = _accidental->accidentalType();
if (acci == Accidental::ACC_SHARP || acci == Accidental::ACC_FLAT) {
// TODO - what about double flat and double sharp?
// TODO - does this need to be key-aware?
int ntpc = pitch2tpc(_pitch, KEY_C, acci == Accidental::ACC_SHARP ? PREFER_SHARPS : PREFER_FLATS);
KeySigEvent key = (staff() && chord()) ? staff()->key(chord()->tick()) : KeySigEvent();
int ntpc = pitch2tpc(_pitch, key.accidentalType(), acci == Accidental::ACC_SHARP ? PREFER_SHARPS : PREFER_FLATS);
if (ntpc != _tpc) {
qDebug("note has wrong tpc: %d, expected %d", _tpc, ntpc);
// setColor(QColor(255, 0, 0));
Expand Down

0 comments on commit 7c7ca30

Please sign in to comment.