Skip to content

Commit

Permalink
Fix GH#174: Staff Texts Style Expression - Import from MS4 failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Sep 29, 2023
1 parent 2757ea2 commit 3f14257
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2361,6 +2361,20 @@ void Measure::readVoice(XmlReader& e, int staffIdx, bool irregular)
segment->add(t);
}
}
else if (tag == "Expression") { // 4.x compat
StaffText* t = new StaffText(score());
t->setTid(Tid::EXPRESSION);
t->setTrack(e.track());
t->read(e);
if (t->empty()) {
qDebug("==reading empty text: deleted");
delete t;
}
else {
segment = getSegment(SegmentType::ChordRest, e.tick());
segment->add(t);
}
}

//----------------------------------------------------
// Annotation
Expand Down

0 comments on commit 3f14257

Please sign in to comment.