mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Fix issues with reading multi-section documents
This commit is contained in:
parent
bd59e9b4ab
commit
ae57182c77
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user