On Sun, 2009-08-09 at 18:45 +0100, Neil Puttock wrote: > 2009/8/7 Joe Neeman <joenee...@gmail.com>: > > How about just checking for an empty extent, like in the attached patch? > > That's probably the best option, since it should allow users to take > advantage of setting X-extent for other barline styles. > > extract_grob_set (h, "elements", helts); > for (vsize k = helts.size (); k--;) > - if ("" != robust_scm2string (helts[k]->get_property > ("glyph-name"), "")) > + // Only non-empty bar lines count. > + if (h->extent (h, X_AXIS).length () > 0) > return false; > > If you're checking the extent of the BreakAlignGroup itself instead of > its cause (the BarLine), can't you get rid of the grob set `helts' > here?
If there's a \bar "" and a clef in the same place, then the BreakAlignGroup will have a non-empty extent, but I think we still want the column to be loose. Joe _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user