Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #298955: Duplicate elements applied for each note in chord with range selection #5560

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mscore/palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,11 @@ bool Palette::applyPaletteElement(Element* element, Qt::KeyboardModifiers modifi
continue;
if (e->isChord()) {
Chord* chord = toChord(e);
for (Note* n : chord->notes())
for (Note* n : chord->notes()) {
applyDrop(score, viewer, n, element, modifiers);
if (!(element->isAccidental() || element->isNoteHead())) // only these need to apply to every note
break;
}
}
else {
// do not apply articulation to barline in a range selection
Expand Down