X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fstaff-symbol-engraver.cc;h=cad91e76c3e958d318ff50305432b536549a41dc;hb=b666e5959e3eb170e57bb1937f9589cfbe7c0ae4;hp=a726f213253f28dbc9022ae3754d97775c4fa435;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/staff-symbol-engraver.cc b/lily/staff-symbol-engraver.cc index a726f21325..cad91e76c3 100644 --- a/lily/staff-symbol-engraver.cc +++ b/lily/staff-symbol-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2011 Han-Wen Nienhuys + Copyright (C) 1997--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,8 +46,19 @@ protected: DECLARE_TRANSLATOR_LISTENER (staff_span); virtual void finalize (); void process_music (); + virtual void derived_mark () const; }; +void +Staff_symbol_engraver::derived_mark () const +{ + for (LEFT_and_RIGHT (d)) + { + if (span_events_[d]) + scm_gc_mark (span_events_[d]->self_scm ()); + } +} + Staff_symbol_engraver::~Staff_symbol_engraver () { if (span_) @@ -99,7 +110,7 @@ Staff_symbol_engraver::start_spanner () { span_ = make_spanner ("StaffSymbol", SCM_EOL); span_->set_bound (LEFT, - unsmob_grob (get_property ("currentCommandColumn"))); + unsmob (get_property ("currentCommandColumn"))); } } @@ -110,7 +121,7 @@ Staff_symbol_engraver::stop_spanner () return; if (!finished_span_->get_bound (RIGHT)) - finished_span_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn"))); + finished_span_->set_bound (RIGHT, unsmob (get_property ("currentCommandColumn"))); announce_end_grob (finished_span_, span_events_[STOP]