Skip to content

Commit

Permalink
fix #61476: Corruption reading empty measure with 7/4 actual duration
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed May 21, 2015
1 parent 4633659 commit 93d1b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/chordrest.cpp
Expand Up @@ -251,7 +251,7 @@ bool ChordRest::readProperties(XmlReader& e)
if (tag == "durationType") {
setDurationType(e.readElementText());
if (actualDurationType().type() != TDuration::DurationType::V_MEASURE) {
if ((type() == Element::Type::REST) &&
if (score()->mscVersion() < 112 && (type() == Element::Type::REST) &&
// for backward compatibility, convert V_WHOLE rests to V_MEASURE
// if long enough to fill a measure.
// OTOH, freshly created (un-initialized) rests have numerator == 0 (< 4/4)
Expand Down

0 comments on commit 93d1b48

Please sign in to comment.