Skip to content

Commit

Permalink
Fix wrong endElement for LyricsLine
Browse files Browse the repository at this point in the history
Follow up to #485, bad mistake of mine in backporting musescore#22941
  • Loading branch information
Jojo-Schmitz committed Sep 23, 2024
1 parent 33f2b19 commit 4f9458d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/spanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,8 +1050,8 @@ Element* Spanner::nextSegmentElement()
{
Segment* s = startSegment();
if (s)
return score()->lastElement();
return s->firstElementForNavigation(staffIdx());
return score()->lastElement();
}

//---------------------------------------------------------
Expand All @@ -1062,8 +1062,8 @@ Element* Spanner::prevSegmentElement()
{
Segment* s = endSegment();
if (s)
return score()->firstElement();
return s->lastElementForNavigation(staffIdx());
return score()->firstElement();
}

//---------------------------------------------------------
Expand Down

0 comments on commit 4f9458d

Please sign in to comment.