Skip to content

Commit

Permalink
fix #33956: hyphen connects wrong syllables with lyrics in multiple v…
Browse files Browse the repository at this point in the history
…oices
  • Loading branch information
MarcSabatella committed Sep 21, 2014
1 parent fa7fb04 commit 84fa467
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions libmscore/system.cpp
Expand Up @@ -839,17 +839,16 @@ static Lyrics* searchNextLyrics(Segment* s, int staffIdx, int verse)
while ((s = s->next1(Segment::Type::ChordRest))) {
int strack = staffIdx * VOICES;
int etrack = strack + VOICES;
QList<Lyrics*>* nll = 0;
// search through all tracks of current staff looking for a lyric in specified verse
for (int track = strack; track < etrack; ++track) {
ChordRest* cr = static_cast<ChordRest*>(s->element(track));
if (cr && !cr->lyricsList().isEmpty()) {
nll = &cr->lyricsList();
break;
// cr with lyrics found, but does it have a syllable in specified verse?
l = cr->lyricsList().value(verse);
if (l)
break;
}
}
if (!nll)
continue;
l = nll->value(verse);
if (l)
break;
}
Expand Down

0 comments on commit 84fa467

Please sign in to comment.