Fix an infinite loop on barline span handling on 2.X import
This commit is contained in:
parent
100d297e54
commit
83ef19bc45
1 changed files with 2 additions and 2 deletions
|
@ -3725,7 +3725,7 @@ Score::FileError MasterScore::read206(XmlReader& e)
|
|||
if (!b)
|
||||
continue;
|
||||
int sp = b->spanStaff();
|
||||
if (sp == 0)
|
||||
if (sp <= 0)
|
||||
continue;
|
||||
for (int span = 1; span <= sp; ++span) {
|
||||
BarLine* nb = toBarLine(s->element((staffIdx + span) * VOICES));
|
||||
|
@ -3742,7 +3742,7 @@ Score::FileError MasterScore::read206(XmlReader& e)
|
|||
for (int staffIdx = 0; staffIdx < nstaves(); ++staffIdx) {
|
||||
Staff* s = staff(staffIdx);
|
||||
int sp = s->barLineSpan();
|
||||
if (sp == 0)
|
||||
if (sp <= 0)
|
||||
continue;
|
||||
for (int span = 1; span <= sp; ++span) {
|
||||
Staff* ns = staff(staffIdx + span);
|
||||
|
|
Loading…
Reference in a new issue