Skip to content

Commit

Permalink
fix #19287: Removing and adding linked staff and creating score cause…
Browse files Browse the repository at this point in the history
…s crash
  • Loading branch information
lasconic committed Mar 21, 2013
1 parent d6b2062 commit 16b843d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mscore/newwizard.cpp
Expand Up @@ -398,6 +398,8 @@ void InstrumentWizard::createInstruments(Score* cs)
QTreeWidgetItem* ci = 0;
int rstaff = 0;
for (int cidx = 0; (ci = pli->child(cidx)); ++cidx) {
if(ci->isHidden())
continue;
StaffListItem* sli = (StaffListItem*)ci;
Staff* staff = new Staff(cs, part, rstaff);
sli->staff = staff;
Expand Down

0 comments on commit 16b843d

Please sign in to comment.