Skip to content

Commit

Permalink
fix #44831: crash extending melisma if no CR in previous segment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Jan 19, 2015
1 parent 74ba9fe commit a6e2f15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mscore/editlyrics.cpp
Expand Up @@ -297,7 +297,8 @@ void ScoreView::lyricsUnderscore()
}
segment = segment->prev1(Segment::Type::ChordRest);
// if the segment has a rest in this track, stop going back
if (segment && segment->elementAt(track)->type() != Element::Type::CHORD)
Element* e = segment ? segment->element(track) : 0;
if (e && e->type() != Element::Type::CHORD)
break;
}

Expand Down

0 comments on commit a6e2f15

Please sign in to comment.