Skip to content
Open
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
12 changes: 11 additions & 1 deletion src/notation/internal/notationinteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2658,7 +2658,8 @@ void NotationInteraction::applyPaletteElementToRange(EngravingItem* element, mu:
const size_t totalNotesInChord = chord->notes().size();
for (size_t noteIdx = 0; noteIdx < totalNotesInChord; ++noteIdx) {
Note* note = chord->notes().at(noteIdx);
if (!note || !score->selectionFilter().canSelectNoteIdx(noteIdx, totalNotesInChord, rangeContainsMultiNoteChords)) {
if (!note || (element->isArticulation() && toArticulation(element)->symId() != SymId::stringsHarmonic && note->tieBack())
|| !score->selectionFilter().canSelectNoteIdx(noteIdx, totalNotesInChord, rangeContainsMultiNoteChords)) {
continue;
}
applyDropPaletteElement(score, note, element, modifiers);
Expand Down Expand Up @@ -5486,6 +5487,15 @@ void NotationInteraction::toggleArticulationForSelection(SymbolId articulationSy
}
}

if (selection()->isRange() && articulationSymbolId != SymbolId::stringsHarmonic) {
muse::remove_if(notes, [](const Note* note) {
return note->tieBack();
});
Comment thread
mnorrisvuw marked this conversation as resolved.
if (notes.empty()) {
return;
}
}

auto updateMode = notesHaveActiculation(notes, articulationSymbolId)
? mu::engraving::ArticulationsUpdateMode::Remove : mu::engraving::ArticulationsUpdateMode::Insert;

Expand Down
Loading