Skip to content

Commit

Permalink
Fix #284064: "Respell pitches" should only work on the selection, if …
Browse files Browse the repository at this point in the history
…there is any

partial backport of musescore#8775
  • Loading branch information
wizofaus authored and Jojo-Schmitz committed Sep 9, 2021
1 parent 564f858 commit 841f8b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libmscore/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,9 +770,8 @@ void Score::spell()
for (int track = strack; track < etrack; ++track) {
Element* e = s->element(track);
if (e && e->type() == ElementType::CHORD)
notes.insert(notes.end(),
toChord(e)->notes().begin(),
toChord(e)->notes().end());
std::copy_if(toChord(e)->notes().begin(), toChord(e)->notes().end(),
std::back_inserter(notes), [this](Element* ce) { return selection().isNone() || ce->selected(); });
}
}
spellNotelist(notes);
Expand Down

0 comments on commit 841f8b0

Please sign in to comment.