From: Carl Worth <cworth@cworth.org>
Date: Mon, 30 Sep 2013 00:33:40 +0000 (-0700)
Subject: Fix to resize staff when ledger lines are no longer needed
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d38e3c6abf6d5aeb287ec1d1262015d8b4a81198;p=scherzo

Fix to resize staff when ledger lines are no longer needed

This restores the original behavior which was inadvertently lost in
some recet code refactoring.
---

diff --git a/score.c b/score.c
index 4e2a5f3..5c0e0b0 100644
--- 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