Skip to content

Commit

Permalink
Manually merged #6179 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoly-os committed Aug 7, 2020
1 parent 3b22676 commit 68bc6f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mscore/scoreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3057,10 +3057,20 @@ void ScoreView::startNoteEntry()
intersect.translate(-p->x(), -p->y());
QList<Element*> el = p->items(intersect);
ChordRest* lastSelected = score()->selection().currentCR();
if (lastSelected && lastSelected->voice()) {
// if last selected CR was not in voice 1,
// find CR in voice 1 instead
int track = trackZeroVoice(lastSelected->track());
Segment* s = lastSelected->segment();
if (s) {
lastSelected = s->nextChordRest(track, true);
}
}

for (Element* e : el) {
// loop through visible elements
// looking for the CR in voice 1 with earliest tick and highest staff position
// but stop we find the last selected CR
// but stop if we find the last selected CR
ElementType et = e->type();
if (et == ElementType::NOTE || et == ElementType::REST) {
if (e->voice()) {
Expand Down

0 comments on commit 68bc6f3

Please sign in to comment.