From 4f9458dab30fd4f4f39ad62aa383949d8341193a Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Mon, 23 Sep 2024 20:58:56 +0200 Subject: [PATCH] Fix wrong endElement for LyricsLine Follow up to #485, bad mistake of mine in backporting #22941 --- libmscore/spanner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmscore/spanner.cpp b/libmscore/spanner.cpp index 113df87544d6e..2aa8e62694ceb 100644 --- a/libmscore/spanner.cpp +++ b/libmscore/spanner.cpp @@ -1050,8 +1050,8 @@ Element* Spanner::nextSegmentElement() { Segment* s = startSegment(); if (s) - return score()->lastElement(); return s->firstElementForNavigation(staffIdx()); + return score()->lastElement(); } //--------------------------------------------------------- @@ -1062,8 +1062,8 @@ Element* Spanner::prevSegmentElement() { Segment* s = endSegment(); if (s) - return score()->firstElement(); return s->lastElementForNavigation(staffIdx()); + return score()->firstElement(); } //---------------------------------------------------------