]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/staff-symbol-engraver.cc
Run `make grand-replace'.
[lilypond.git] / lily / staff-symbol-engraver.cc
index d4e57955fceb01b030fc7086cf034052dbe62696..12bdfe24461670abf2fee90ac18e109646e11f18 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "engraver.hh"
@@ -57,7 +57,7 @@ Staff_symbol_engraver::listen_staff_span (Stream_event *ev)
 {
   Direction d = to_dir (ev->get_property ("span-direction"));
   if (d)
-    span_events_[d] = ev;
+    ASSIGN_EVENT_ONCE (span_events_[d], ev);
   else
     programming_error (_ ("staff-span event has no direction"));
 }
@@ -148,9 +148,15 @@ Staff_symbol_engraver::acknowledge_grob (Grob_info s)
 ADD_ACKNOWLEDGER (Staff_symbol_engraver, grob);
 
 ADD_TRANSLATOR (Staff_symbol_engraver,
-               /* doc */ "Create the constellation of five (default) "
-               "staff lines.",
-               /* create */ "StaffSymbol",
-               /* accept */ "staff-span-event",
-               /* read */ "",
-               /* write */ "");
+               /* doc */
+               "Create the constellation of five (default) staff lines.",
+
+               /* create */
+               "StaffSymbol ",
+
+               /* read */
+               "",
+
+               /* write */
+               ""
+               );