]> git.cworth.org Git - scherzo/commitdiff
Fix to resize staff when ledger lines are no longer needed
authorCarl Worth <cworth@cworth.org>
Mon, 30 Sep 2013 00:33:40 +0000 (17:33 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 30 Sep 2013 00:33:40 +0000 (17:33 -0700)
This restores the original behavior which was inadvertently lost in
some recet code refactoring.

score.c

diff --git a/score.c b/score.c
index 4e2a5f3b62667a5c91c96d8486394938458c1975..5c0e0b023545b15c1a5f48c69c94fd6ca5aaa026 100644 (file)
--- a/score.c
+++ b/score.c
@@ -704,6 +704,9 @@ score_staff_remove_notes (score_staff_t *staff)
     talloc_free (staff->notes);
     staff->notes = NULL;
     staff->num_notes = 0;
+
+    staff->upper_ledger_lines = 0;
+    staff->lower_ledger_lines = 0;
 }
 
 void