X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Finstrument-switch-engraver.cc;h=8bd364646c58af80b5089ef388f34b70f9c00f56;hb=e27f4adb184e30ee9202255a4d9807dd56dad3e1;hp=589bb051452acf1aef8da687e45fd0902525de66;hpb=b7a0cffbf9d1069860368f289a5b50e9d1d90ba8;p=lilypond.git diff --git a/lily/instrument-switch-engraver.cc b/lily/instrument-switch-engraver.cc index 589bb05145..8bd364646c 100644 --- a/lily/instrument-switch-engraver.cc +++ b/lily/instrument-switch-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2006--2009 Han-Wen Nienhuys + Copyright (C) 2006--2010 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify @@ -21,6 +21,7 @@ #include "engraver.hh" #include "item.hh" #include "text-interface.hh" + #include "translator.icc" @@ -34,8 +35,15 @@ protected: void stop_translation_time_step (); void process_music (); + + virtual void derived_mark () const; }; +void +Instrument_switch_engraver::derived_mark () const +{ + scm_gc_mark (cue_name_); +} Instrument_switch_engraver::Instrument_switch_engraver () { @@ -50,7 +58,7 @@ void Instrument_switch_engraver::process_music () { SCM cue_text = get_property ("instrumentCueName"); - + if (!scm_is_eq (cue_name_, cue_text)) { if (Text_interface::is_markup (cue_text))