Skip to content

Commit

Permalink
Add two more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwd36 committed Aug 26, 2019
1 parent d292537 commit e0f0e46
Show file tree
Hide file tree
Showing 12 changed files with 1,705 additions and 507 deletions.
12 changes: 11 additions & 1 deletion libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,6 @@ void Measure::readVoice(XmlReader& e, int staffIdx, bool irregular)
|| tag == "Sticking"
|| tag == "SystemText"
|| tag == "RehearsalMark"
|| tag == "InstrumentChange"
|| tag == "InstrumentChangeWarning"
|| tag == "StaffState"
|| tag == "FiguredBass"
Expand All @@ -2313,6 +2312,17 @@ void Measure::readVoice(XmlReader& e, int staffIdx, bool irregular)
segment = getSegment(SegmentType::ChordRest, e.tick());
segment->add(el);
}
else if (tag == "InstrumentChange") {
InstrumentChange* ic = new InstrumentChange(score());
ic->setTrack(e.track());
ic->read(e);
segment = getSegment(SegmentType::ChordRest, e.tick());
segment->add(ic);
for (int i = 0; i < ic->part()->nstaves(); i++) {
if (ic->part()->staff(i)->staffType(e.tick())->lines() != ic->lines() || ic->staffGroup() != StaffGroup::STANDARD)
ic->setupStaffType(ic->part()->staff(i));
}
}
else if (tag == "Fermata") {
fermata = new Fermata(score());
fermata->setTrack(e.track());
Expand Down
Loading

0 comments on commit e0f0e46

Please sign in to comment.