X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fstaff-symbol-engraver.cc;h=a103eda0b39fe963805833bf249a572c9fc19b69;hb=0c34fe54a73dec156d4ed33a47647388588385df;hp=d4e57955fceb01b030fc7086cf034052dbe62696;hpb=c4c0ba811cd526f047de3f4d3c77abcc32a3e076;p=lilypond.git diff --git a/lily/staff-symbol-engraver.cc b/lily/staff-symbol-engraver.cc index d4e57955fc..a103eda0b3 100644 --- a/lily/staff-symbol-engraver.cc +++ b/lily/staff-symbol-engraver.cc @@ -1,9 +1,20 @@ /* - staff-symbol-engraver.cc -- implement Staff_symbol_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1997--2010 Han-Wen Nienhuys - (c) 1997--2006 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "engraver.hh" @@ -57,7 +68,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 +159,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 */ + "" + );