Skip to content

Commit

Permalink
fix: bad placement of chord symbols when in a music line with only in…
Browse files Browse the repository at this point in the history
…visible rests

Issue #14.
  • Loading branch information
moinejf committed Jan 10, 2021
1 parent 81f49bd commit 27d0bc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit 27d0bc6

Please sign in to comment.