From 9ec2e9d50e105c94b8f5f45f1d90e1550ba21549 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Tue, 29 Jan 2008 23:22:13 +0000 Subject: [PATCH] Sanitize broken syllabic information --- Sources/VLPListDocument.mm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Sources/VLPListDocument.mm b/Sources/VLPListDocument.mm index 8380ec8..565d20a 100644 --- a/Sources/VLPListDocument.mm +++ b/Sources/VLPListDocument.mm @@ -219,6 +219,8 @@ void VLPlistVisitor::VisitChord(VLChord & c) VLFraction at(0); VLFraction tiedStart(0); VLLyricsNote tiedNote; + uint8_t prevKind[20]; + memset(prevKind, 0, 20); for (NSEnumerator * ne = [melody objectEnumerator]; NSDictionary * ndict = [ne nextObject]; @@ -261,7 +263,18 @@ void VLPlistVisitor::VisitChord(VLChord & c) note.fLyrics.push_back(syll); } } - + + // + // Sanitize syllabic information which was corrupt in early + // versions. + // + for (size_t i = 0; i