Skip to content

Commit

Permalink
Prevent overlapping double bars
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredjj3 committed May 31, 2024
1 parent d76f2ed commit ed13dc3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/rendering/barline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,16 @@ export class Barline {
}
break;
case 'double-same':
return 'double';
switch (this.location) {
case 'left':
return 'thinDouble';
case 'middle':
return 'double';
case 'right':
// vexflow doesn't have a thin double right barline, so we show nothing instead.
return 'none';
}
break;
case 'double-different':
switch (this.location) {
case 'left':
Expand Down

0 comments on commit ed13dc3

Please sign in to comment.