X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgrace-spacing-engraver.cc;h=69a42b2d5b727a73690bdd17eea6b8d3598b930d;hb=7a154de04023d59019bdd498b525580890fd2152;hp=b784358a2c9dc335dd22a96ff338c3f89caa8d7e;hpb=8feb4129f717f38c6bf41a924ec298424ec63065;p=lilypond.git diff --git a/lily/grace-spacing-engraver.cc b/lily/grace-spacing-engraver.cc index b784358a2c..69a42b2d5b 100644 --- a/lily/grace-spacing-engraver.cc +++ b/lily/grace-spacing-engraver.cc @@ -3,13 +3,14 @@ source file of the GNU LilyPond music typesetter - (c) 2006 Han-Wen + (c) 2006--2007 Han-Wen */ #include "engraver.hh" -#include "spanner.hh" +#include "moment.hh" #include "pointer-group-interface.hh" +#include "spanner.hh" #include "translator.icc" @@ -50,6 +51,11 @@ Grace_spacing_engraver::process_music () column); column->set_object ("grace-spacing", grace_spacing_->self_scm ()); + + if (!grace_spacing_->get_bound (LEFT)) + grace_spacing_->set_bound (LEFT, column); + else + grace_spacing_->set_bound (RIGHT, column); } } @@ -64,15 +70,15 @@ Grace_spacing_engraver::stop_translation_timestep () ADD_TRANSLATOR (Grace_spacing_engraver, - "Bookkeeping of shortest starting and playing notes in grace note runs.", + "Bookkeeping of shortest starting and playing notes in grace" + " note runs.", /* create */ "GraceSpacing ", - - /* accept */ - "", /* read */ "currentMusicalColumn ", - /* write */ ""); + /* write */ + "" + );