+2005-05-12 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/align-interface.cc (align_elements_to_extents): warn if
+ called too early. Fixes: disappearing-staff-lines.ly
+
+ * VERSION (PACKAGE_NAME): release 2.5.24
+
2005-05-12 Jan Nieuwenhuizen <janneke@gnu.org>
* flower/string.cc (substitute): Take two strings or two
#include "align-interface.hh"
+#include "spanner.hh"
+#include "item.hh"
#include "axis-group-interface.hh"
#include "hara-kiri-group-spanner.hh"
-#include "output-def.hh"
MAKE_SCHEME_CALLBACK (Align_interface, alignment_callback, 2);
SCM
void
Align_interface::align_elements_to_extents (Grob *me, Axis a)
{
+ Spanner *me_spanner = dynamic_cast<Spanner *> (me);
+ if (a == Y_AXIS
+ && me_spanner
+ && me_spanner->get_bound (LEFT)->break_status_dir () == CENTER)
+ {
+ me_spanner->warning (_("vertical alignment called before line-breaking. Only do cross-staff spanners with PianoStaff."));
+ }
+
me->set_property ("positioning-done", SCM_BOOL_T);
SCM d = me->get_property ("stacking-dir");