Skip to content

Commit

Permalink
fix #25136: Opening a score with minimum empty measure for mmRest = 0…
Browse files Browse the repository at this point in the history
… causes hang
  • Loading branch information
lasconic committed Mar 26, 2014
1 parent ef3a7da commit 2c8a2d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libmscore/read114.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ Score::FileError Score::read114(XmlReader& e)
style()->set(ST_evenFooterL, QString("$P"));
style()->set(ST_oddFooterR, QString("$P"));
}
if (style(ST_minEmptyMeasures).toInt() == 0)
style()->set(ST_minEmptyMeasures, 1);

_showOmr = false;

Expand Down
9 changes: 8 additions & 1 deletion mscore/editstyle.ui
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,14 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="minEmptyMeasures"/>
<widget class="QSpinBox" name="minEmptyMeasures">
<property name="minimum">
<number>1</number>
</property>
<property name="value">
<number>2</number>
</property>
</widget>
</item>
</layout>
</item>
Expand Down

0 comments on commit 2c8a2d6

Please sign in to comment.