From 50e76e6cfbbf084f77877106abe2cd70bfeb2384 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 26 Dec 2019 14:37:10 -0500 Subject: [PATCH] Fix #298955: Duplicate elements applied for each note in chord with range selection --- mscore/palette.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mscore/palette.cpp b/mscore/palette.cpp index 064558529f46f..7d3fe453408d1 100644 --- a/mscore/palette.cpp +++ b/mscore/palette.cpp @@ -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