Skip to content

Commit

Permalink
fix #272153: Notes for transposing instrument are shown in concert pi…
Browse files Browse the repository at this point in the history
…tch on piano control

Manually merged changes from #3663 to 2.3
  • Loading branch information
anatoly-os committed May 10, 2018
1 parent 1da8931 commit 7345a8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mscore/pianotools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ void HPiano::changeSelection(Selection selection)
key->setSelected(false);
}
for (Note* n : selection.noteList()) {
if (n->pitch() >= _firstKey && n->pitch() <= _lastKey)
keys[n->pitch() - _firstKey]->setSelected(true);
if (n->epitch() >= _firstKey && n->epitch() <= _lastKey)
keys[n->epitch() - _firstKey]->setSelected(true);
for (Note* other : n->chord()->notes())
if (other->pitch() >= _firstKey && other->pitch() <= _lastKey)
keys[other->pitch() - _firstKey]->setHighlighted(true);
if (other->epitch() >= _firstKey && other->epitch() <= _lastKey)
keys[other->epitch() - _firstKey]->setHighlighted(true);
}
for (PianoKeyItem* key : keys)
key->update();
Expand Down

0 comments on commit 7345a8c

Please sign in to comment.