X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=score.c;fp=score.c;h=26c5a02818e6ba60ad6f77c7e00141719ff16ddb;hb=dd9b9d386cfb63002f3e8d1521b25abfa58b76e5;hp=6530a503c7731fe43508dacf0b2fc2d9db543628;hpb=0d91a08ddeea3e07edb853e01f3b3dfde18ea7d7;p=scherzo diff --git a/score.c b/score.c index 6530a50..26c5a02 100644 --- a/score.c +++ b/score.c @@ -489,6 +489,11 @@ score_remove_note (score_note_t *note) } staff->num_notes -= 1; + + if (staff->num_notes == 0) { + staff->upper_ledger_lines = 0; + staff->lower_ledger_lines = 0; + } } score_note_t *