Skip to content

Commit

Permalink
fix: crash when grace notes at end of line and voice overlay
Browse files Browse the repository at this point in the history
Issue #89.
  • Loading branch information
moinejf committed May 2, 2021
1 parent 9630392 commit 8683a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This file is part of abcm2ps.
*
* Copyright (C) 1998-2019 Jean-François Moine (http://moinejf.free.fr)
* Copyright (C) 1998-2021 Jean-François Moine (http://moinejf.free.fr)
* Adapted from abc2ps, Copyright (C) 1996-1998 Michael Methfessel
*
* This program is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -1975,7 +1975,7 @@ static struct SYMBOL *set_nl(struct SYMBOL *s)
break;
goto cut_here;
}
if (s->extra) {
if (s->extra && s->type != GRACE) {
if (!extra)
extra = s;
else
Expand Down

0 comments on commit 8683a6e

Please sign in to comment.