From: hanwen Date: Tue, 20 Jan 2004 17:56:26 +0000 (+0000) Subject: * lily/axis-group-engraver.cc (finalize): extra check; if X-Git-Tag: release/2.1.14~13 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6c074b516a963cd4619bc758a86fdec3e87348fd;p=lilypond.git * lily/axis-group-engraver.cc (finalize): extra check; if process_music() is never called, then staffline_ == 0. * VERSION: release 2.1.13 --- diff --git a/ChangeLog b/ChangeLog index c283e4c085..b625d0bedc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-01-20 Han-Wen Nienhuys + * 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 (). diff --git a/VERSION b/VERSION index 842bb6259b..689bd8de21 100644 --- a/VERSION +++ b/VERSION @@ -2,5 +2,5 @@ PACKAGE_NAME=LilyPond MAJOR_VERSION=2 MINOR_VERSION=1 PATCH_LEVEL=13 -MY_PATCH_LEVEL= +MY_PATCH_LEVEL=hwn1 diff --git a/lily/axis-group-engraver.cc b/lily/axis-group-engraver.cc index 0cff96e946..38ffd0caf7 100644 --- a/lily/axis-group-engraver.cc +++ b/lily/axis-group-engraver.cc @@ -41,16 +41,16 @@ Axis_group_engraver::Axis_group_engraver () 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* @@ -66,6 +66,12 @@ Axis_group_engraver::get_spanner () const 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");