From ae57182c77de705bf8dc98291630ce4598df29a0 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Wed, 16 Jan 2008 23:09:15 +0000 Subject: [PATCH] Fix issues with reading multi-section documents --- Filters/VLMusicXMLType.reader | 2 +- Sources/VLPListDocument.mm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Filters/VLMusicXMLType.reader b/Filters/VLMusicXMLType.reader index 63cc4de..3c9f9e0 100755 --- a/Filters/VLMusicXMLType.reader +++ b/Filters/VLMusicXMLType.reader @@ -354,7 +354,7 @@ class MusicXMLListener case tag when 'attributes' if @prop != @props.last - @props.push(@prop) + @props.push(@prop.dup) end when 'note' if @chord diff --git a/Sources/VLPListDocument.mm b/Sources/VLPListDocument.mm index 0fda0f5..4056fc5 100644 --- a/Sources/VLPListDocument.mm +++ b/Sources/VLPListDocument.mm @@ -321,6 +321,10 @@ advanceAt: song->fMeasures[measNo].fBreak |= VLMeasure::kNewSystem; if ([[mdict objectForKey:@"new-page"] boolValue]) song->fMeasures[measNo].fBreak |= VLMeasure::kNewPage; + if (NSNumber * mPx = [mdict objectForKey:@"properties"]) + song->fMeasures[measNo].fPropIdx= + static_cast([mPx intValue]); + if (NSDictionary * beginRep = [mdict objectForKey:@"begin-repeat"]) { VLRepeat rep; VLRepeat::Ending ending(measNo, measNo, 0);