2004-01-20 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/axis-group-engraver.cc (finalize): extra check; if
+ process_music() is never called, then staffline_ == 0.
+
* lily/simultaneous-music-iterator.cc (pending_moment): don't
check run_always ().
void
Axis_group_engraver::process_music ()
{
-if (!staffline_)
- {
- staffline_ = get_spanner ();
+ if (!staffline_)
+ {
+ staffline_ = get_spanner ();
- Grob * it = unsmob_grob (get_property ("currentCommandColumn"));
+ Grob * it = unsmob_grob (get_property ("currentCommandColumn"));
- staffline_->set_bound (LEFT,it);
+ staffline_->set_bound (LEFT,it);
- announce_grob(staffline_, SCM_EOL);
-}
+ announce_grob(staffline_, SCM_EOL);
+ }
}
Spanner*
void
Axis_group_engraver::finalize ()
{
+ if (!staffline_)
+ {
+ programming_error ("Huh? This context never lived?");
+ return ;
+ }
+
String type = get_daddy_grav ()->context_name ();
SCM dims = get_property ("verticalExtent");