Skip to content

Commit

Permalink
fix #17717: Crash after create score dialogue
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Aug 9, 2012
1 parent c90679e commit aae89a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mscore/newwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,11 @@ void InstrumentWizard::createInstruments(Score* cs)
staff->setBarLineSpan(1);
int nstaffIdx = staffIdx + barLineSpan;

for (int idx = staffIdx+1; idx < nstaffIdx; ++idx)
cs->staff(idx)->setBarLineSpan(0);
for (int idx = staffIdx+1; idx < nstaffIdx; ++idx) {
Staff* tStaff = cs->staff(idx);
if (tStaff)
tStaff->setBarLineSpan(0);
}

staffIdx = nstaffIdx;
}
Expand Down

0 comments on commit aae89a3

Please sign in to comment.