Skip to content

Commit

Permalink
fix: crash when clef change under a slur at end of line
Browse files Browse the repository at this point in the history
Issue #35.
  • Loading branch information
moinejf committed Jun 17, 2018
1 parent 86af3cf commit e052415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1871,9 +1871,9 @@ struct SYMBOL *prev_scut(struct SYMBOL *s)
s = voice_tb[s->voice].sym;
while (s->type != CLEF)
s = s->ts_prev; /* search a main voice */
if (s->next->type == KEYSIG)
if (s->next && s->next->type == KEYSIG)
s = s->next;
if (s->next->type == TIMESIG)
if (s->next && s->next->type == TIMESIG)
s = s->next;
return s;
}
Expand Down

0 comments on commit e052415

Please sign in to comment.