From 27d0bc6adc9c693d417dabbf11838849b89b6df2 Mon Sep 17 00:00:00 2001 From: Jean-Francois Moine Date: Sun, 10 Jan 2021 18:21:33 +0100 Subject: [PATCH] fix: bad placement of chord symbols when in a music line with only invisible rests Issue #14. --- draw.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/draw.c b/draw.c index a601ac5..d230dd1 100644 --- a/draw.c +++ b/draw.c @@ -4389,7 +4389,8 @@ static float set_staff(void) y = 0; if (staff > nstaff) { staff--; /* one staff, empty */ - } else { +// } else { + } { for (i = 0; i < YSTEP; i++) { v = staff_tb[staff].top[i]; if (y < v) @@ -4400,9 +4401,6 @@ static float set_staff(void) /* draw the parts and tempo indications if any */ y += draw_partempo(staff, y); - if (empty[staff]) - return y; - y *= staff_tb[staff].staffscale; staffsep = cfmt.staffsep * 0.5 + staff_tb[staff].topbar * staff_tb[staff].staffscale;