Skip to content

Commit

Permalink
Fix #8893: allow for 128th as the denominator for measures
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Aug 20, 2021
1 parent 186ced1 commit 388f0c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,7 @@ void Measure::read(XmlReader& e, int staffIdx)
qDebug("illegal measure size <%s>", qPrintable(e.attribute("len")));
}
irregular = true;
if (_len.numerator() <= 0 || _len.denominator() <= 0) {
if (_len.numerator() <= 0 || _len.denominator() <= 0 || _len.denominator() > 128) {
e.raiseError(QObject::tr("MSCX error at line %1: invalid measure length: %2").arg(e.lineNumber()).arg(_len.toString()));
return;
}
Expand Down
5 changes: 5 additions & 0 deletions src/notation/view/widgets/measureproperties.ui
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@
<string>64</string>
</property>
</item>
<item>
<property name="text">
<string>128</string>
</property>
</item>
</widget>
</item>
<item row="0" column="4" colspan="2">
Expand Down

0 comments on commit 388f0c3

Please sign in to comment.