]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/custos-engraver.cc
* lily/engraver.cc (internal_make_item): centralize item/spanner
[lilypond.git] / lily / custos-engraver.cc
index ed50050923d1a61dda4c84ab526382ea0923b866..edc9b330b3ae37050d3d46881875502107d64e99 100644 (file)
@@ -51,21 +51,21 @@ Custos_engraver::stop_translation_timestep ()
   /*
     delay typeset until we're at the next moment, so we can silence custodes at the end of the piece.
    */
-}
-
-void
-Custos_engraver::start_translation_timestep ()
-{
   for (int i = custodes_.size (); i--;)
     {
       typeset_grob (custodes_[i]);
     }
-  custodes_.clear ();
   pitches_.clear ();
 
   custos_permitted = false;
 }
 
+void
+Custos_engraver::start_translation_timestep ()
+{
+  custodes_.clear ();
+}
+
 
 void
 Custos_engraver::acknowledge_grob (Grob_info info)
@@ -124,8 +124,7 @@ Custos_engraver::process_acknowledged_grobs ()
 Item* 
 Custos_engraver::create_custos ()
 {
-  SCM basicProperties = get_property ("Custos");
-  Item* custos = new Item (basicProperties);
+  Item* custos = make_item ("Custos");
   
   announce_grob(custos, SCM_EOL);
   custodes_.push (custos);