Still need to skip tied notes

This commit is contained in:
Matthias Neeracher 2008-03-30 19:39:07 +00:00
parent b8206f9f13
commit d16a8be705

View File

@ -1388,11 +1388,12 @@ void VLSong::SetWord(size_t stanza, size_t measure, VLFraction at, std::string w
VLFraction now(0); VLFraction now(0);
while (note != meas.fMelody.end()) { while (note != meas.fMelody.end()) {
if (note->fPitch != VLNote::kNoPitch
&& !(note->fTied & VLNote::kTiedWithPrev)
)
switch (state) { switch (state) {
case kFindFirst: case kFindFirst:
if (now < at || note->fPitch == VLNote::kNoPitch if (now < at)
|| (note->fTied & VLNote::kTiedWithPrev)
)
break; // Not yet there, skip this note break; // Not yet there, skip this note
state = kOverwrite; state = kOverwrite;
// Fall through // Fall through