From 1f650ba48d8764a9f905bd05505f36fbf3459474 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 3e41988206e40..8554c159a8dde 100644 --- a/src/notation/internal/notationinteraction.cpp +++ b/src/notation/internal/notationinteraction.cpp @@ -6239,6 +6239,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(); @@ -6247,7 +6248,7 @@ void NotationInteraction::addMelisma() const std::vector previousRepeats = findPreviousRepeatMeasures(toLyricsMeasure); const bool inPrecedingRepeatSeg = muse::contains(previousRepeats, fromLyricsMeasure); if (!previousRepeats.empty() && !inPrecedingRepeatSeg) { - return; + fromLyrics = nullptr; } } }