Fix issues with reading multi-section documents

This commit is contained in:
Matthias Neeracher 2008-01-16 23:09:15 +00:00
parent bd59e9b4ab
commit ae57182c77
2 changed files with 5 additions and 1 deletions

View File

@ -354,7 +354,7 @@ class MusicXMLListener
case tag case tag
when 'attributes' when 'attributes'
if @prop != @props.last if @prop != @props.last
@props.push(@prop) @props.push(@prop.dup)
end end
when 'note' when 'note'
if @chord if @chord

View File

@ -321,6 +321,10 @@ advanceAt:
song->fMeasures[measNo].fBreak |= VLMeasure::kNewSystem; song->fMeasures[measNo].fBreak |= VLMeasure::kNewSystem;
if ([[mdict objectForKey:@"new-page"] boolValue]) if ([[mdict objectForKey:@"new-page"] boolValue])
song->fMeasures[measNo].fBreak |= VLMeasure::kNewPage; song->fMeasures[measNo].fBreak |= VLMeasure::kNewPage;
if (NSNumber * mPx = [mdict objectForKey:@"properties"])
song->fMeasures[measNo].fPropIdx=
static_cast<size_t>([mPx intValue]);
if (NSDictionary * beginRep = [mdict objectForKey:@"begin-repeat"]) { if (NSDictionary * beginRep = [mdict objectForKey:@"begin-repeat"]) {
VLRepeat rep; VLRepeat rep;
VLRepeat::Ending ending(measNo, measNo, 0); VLRepeat::Ending ending(measNo, measNo, 0);