Skip to content

Commit

Permalink
Merge pull request #4517 from ericfont/280814-add-timesig-meas-with-c…
Browse files Browse the repository at this point in the history
…lef-but-not-all-staves-have-clefs

fix #280814 add timesig to meas w/some clefs
  • Loading branch information
anatoly-os committed Jan 8, 2019
2 parents 109f7af + 641ac7a commit a9cdbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ std::vector<Clef*> InsertRemoveMeasures::getCourtesyClefs(Measure* m)
if (clefSeg) {
for (int st = 0; st < score->nstaves(); ++st) {
Element* clef = clefSeg->element(staff2track(st));
if (clef->isClef())
if (clef && clef->isClef())
startClefs.push_back(toClef(clef));
}
}
Expand Down

0 comments on commit a9cdbed

Please sign in to comment.