Skip to content

Commit

Permalink
fix #276295: put signatures in <voice> tag when saving selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrio95 committed Dec 19, 2018
1 parent ce6d22e commit d2bc05a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/scorefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,8 @@ void Score::writeSegments(XmlWriter& xml, int strack, int etrack,
if (e->generated())
continue;
if (forceTimeSig && track2voice(track) == 0 && segment->segmentType() == SegmentType::ChordRest && !timeSigWritten && !crWritten) {
// Ensure that <voice> tag is open
voiceTagWritten |= writeVoiceMove(xml, segment, startTick, track, &lastTrackWritten);
// we will miss a key sig!
if (!keySigWritten) {
Key k = score()->staff(track2staff(track))->key(segment->tick());
Expand Down

0 comments on commit d2bc05a

Please sign in to comment.