From 443f9d01035b383573b2ff89cc99d938b6773953 Mon Sep 17 00:00:00 2001 From: James Mizen Date: Thu, 9 Jan 2025 13:46:37 +0000 Subject: [PATCH] Allow adding partial melismas to 2nd time bars --- src/notation/internal/notationinteraction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/notation/internal/notationinteraction.cpp b/src/notation/internal/notationinteraction.cpp index 8d2e15c2a99c3..4bdf30c23f6dc 100644 --- a/src/notation/internal/notationinteraction.cpp +++ b/src/notation/internal/notationinteraction.cpp @@ -6246,6 +6246,7 @@ void NotationInteraction::addMelisma() ChordRest* nextCR = toChordRest(nextSegment->element(track)); // Disallow melisma lines between non-adjacent repeat sections eg. 1st volta -> 2nd volta + // Instead, try to add partial melisma line if (nextCR && fromLyrics) { Measure* toLyricsMeasure = nextCR->measure(); Measure* fromLyricsMeasure = fromLyrics->measure(); @@ -6254,7 +6255,7 @@ void NotationInteraction::addMelisma() const std::vector previousRepeats = findPreviousRepeatMeasures(toLyricsMeasure); const bool inPrecedingRepeatSeg = muse::contains(previousRepeats, fromLyricsMeasure); if (!previousRepeats.empty() && !inPrecedingRepeatSeg) { - return; + fromLyrics = nullptr; } } }