Re: Barline doesn't whiteout stave lines sometimes

Jean Abou Samra <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
Le jeudi 08 juin 2023 à 22:14 -0400, William Rehwinkel via bug-lilypond a écrit :

> Dear list,
> 
> In the following example, the stave lines overlap the barlines at the 
> end of the bottom two staves (the expected behavior would have been for 
> the stave lines to be interrupted by the bar lines like the others).



I don't think it's a bug.

By default, StaffSymbol and BarLine have the same layer value (see [StaffSymbol](https://lilypond.org/doc/v2.25/Documentation/internals/staffsymbol) and [BarLine](https://lilypond.org/doc/v2.25/Documentation/internals/barline) in the Internals Reference), so the order in which they are drawn is arbitrary. Of course, you could argue that the order should always be well-defined. That would require giving a layer to every single grob, which would not necessarily scale (are you prepared to make a decision on what the layer of each of the 163 grob types should be?).

IMHO, if you have an order that you want to be followed, you should just set the layer yourself, as in

```
   \layout {
     \context {
       \Staff
       \override BarLine.color = #red
       \override BarLine.layer = 1
     }
   }
```
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSZ7TKxnKGyBvBjzBmj8PYLiTOX/gUCZIRwIgAKCRCj8PYLiTOX
/rgaAP0QaR1Ekdyy8kfMf2dDdsnyonb6JOSWL0175IJq0wUATAD8CJ/o80Lw2x6G
iUQiU2ZUmbbJBRZK52pWbALJ+N3Ucg0=
=YZ5B
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.