X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fvaticana-ligature-engraver.cc;h=45a30edf6c8faeaa8608870deba0c37fc0afffad;hb=471381c46d9e137f23112295f8a6b7723b95c16a;hp=6cd3c0bdac6de7f13a4003c04e6f12c291160224;hpb=e42585017a01fd02f6353b994cf0c87b03a7bb2e;p=lilypond.git diff --git a/lily/vaticana-ligature-engraver.cc b/lily/vaticana-ligature-engraver.cc index 6cd3c0bdac..45a30edf6c 100644 --- a/lily/vaticana-ligature-engraver.cc +++ b/lily/vaticana-ligature-engraver.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2003--2006 Juergen Reuter + (c) 2003--2007 Juergen Reuter */ #include "gregorian-ligature-engraver.hh" @@ -13,6 +13,7 @@ #include "international.hh" #include "output-def.hh" #include "paper-column.hh" +#include "separation-item.hh" #include "spanner.hh" #include "staff-symbol-referencer.hh" #include "stream-event.hh" @@ -413,6 +414,9 @@ Vaticana_ligature_engraver::add_mora_column (Paper_column *column) dot->set_parent (primitive, Y_AXIS); primitive->set_object ("dot", dot->self_scm ()); Dot_column::add_head (dotcol, primitive); + + // FIXME: why isn't the dot picked up by Paper_column_engraver? + Separation_item::add_item (column, dot); } } @@ -433,10 +437,10 @@ Vaticana_ligature_engraver::add_mora_column (Paper_column *column) void Vaticana_ligature_engraver::check_for_ambiguous_dot_pitch (Grob_info primitive) { - // TODO: Fix performance, which is currently O(n^2) (since this - // method is called O(n) times and takes O(n) steps in the for - // loop), but could be O(n) (by replacing the for loop by e.g. a - // bitmask based O(1) test); where n= (which is typically small (n<10), though). Stream_event *new_cause = primitive.event_cause (); int new_pitch = unsmob_pitch (new_cause->get_property ("pitch"))->steps ();