X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbreak-align-engraver.cc;h=76d6e891f6aa45979e398bb82fbccca2836c4d0a;hb=54b02666750062788185bd3f99e644d621e348c2;hp=922978f2b1ca458c2a5ec6e29b09930c1997f01b;hpb=38d7d319eabc906e82fb42002678c6d42a23b6f7;p=lilypond.git diff --git a/lily/break-align-engraver.cc b/lily/break-align-engraver.cc index 922978f2b1..76d6e891f6 100644 --- a/lily/break-align-engraver.cc +++ b/lily/break-align-engraver.cc @@ -1,9 +1,20 @@ /* - break-align-engraver.cc -- implement Break_align_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1999--2011 Han-Wen Nienhuys - (c) 1999--2009 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" #include "protected-scm.hh" @@ -58,6 +69,13 @@ Break_align_engraver::derived_mark () const void Break_align_engraver::acknowledge_break_alignable (Grob_info inf) { + /* + Special case for MetronomeMark: filter out items which will be aligned + on note heads rather than prefatory material + */ + if (!Item::is_non_musical (inf.item ())) + return; + if (!align_) create_alignment (inf); @@ -84,7 +102,7 @@ Break_align_engraver::acknowledge_break_aligned (Grob_info inf) SCM align_name = item->get_property ("break-align-symbol"); if (!scm_is_symbol (align_name)) return; - + if (!align_) create_alignment (inf);