Skip to content

Commit

Permalink
Disable slur to/from cue
Browse files Browse the repository at this point in the history
  • Loading branch information
miiizen committed Sep 11, 2023
1 parent db3c6a0 commit 3d077cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/notation/internal/notationinteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1939,12 +1939,13 @@ void NotationInteraction::doAddSlur(const mu::engraving::Slur* slurTemplate)
}
}

if (firstChordRest && (firstChordRest != secondChordRest)) {
if (firstChordRest && (firstChordRest != secondChordRest)
&& !(firstChordRest->isTrillCueNote() || secondChordRest->isTrillCueNote())) {
doAddSlur(firstChordRest, secondChordRest, slurTemplate);
}
}
} else if (sel.isSingle()) {
if (sel.element()->isNote()) {
if (sel.element()->isNote() && !toNote(sel.element())->isTrillCueNote()) {
doAddSlur(toNote(sel.element())->chord(), nullptr, slurTemplate);
}
} else {
Expand All @@ -1968,7 +1969,7 @@ void NotationInteraction::doAddSlur(const mu::engraving::Slur* slurTemplate)
secondChordRest = mu::engraving::nextChordRest(firstChordRest);
}

if (firstChordRest) {
if (firstChordRest && !(firstChordRest->isTrillCueNote() || secondChordRest->isTrillCueNote())) {
doAddSlur(firstChordRest, secondChordRest, slurTemplate);
}
}
Expand Down

0 comments on commit 3d077cb

Please sign in to comment.