X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fchord-name.cc;h=8ff3ffe763cbba2389e835da0e962d2d6290c1cb;hb=801b2c64360b181dabe76d02bb001b88e2643bb6;hp=360edb564813c3aed5394165a2db6cf4cc40bf94;hpb=58bcc84c9480dae1b21bc24d8396b91fe19e0131;p=lilypond.git diff --git a/lily/chord-name.cc b/lily/chord-name.cc index 360edb5648..8ff3ffe763 100644 --- a/lily/chord-name.cc +++ b/lily/chord-name.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2005 Jan Nieuwenhuizen + (c) 1999--2007 Jan Nieuwenhuizen */ #include "chord-name.hh" @@ -13,7 +13,7 @@ #include "paper-column.hh" #include "system.hh" #include "staff-symbol-referencer.hh" -#include "text-item.hh" +#include "text-interface.hh" MAKE_SCHEME_CALLBACK (Chord_name, after_line_breaking, 1); SCM @@ -25,13 +25,15 @@ Chord_name::after_line_breaking (SCM smob) SCM s = me->get_property ("begin-of-line-visible"); if (to_boolean (s)) { - if (Paper_column::get_rank (me->get_column ()) + if (me->get_column ()->get_rank () - me->get_system ()->spanned_rank_iv ()[LEFT] > 1) me->suicide (); } return SCM_UNSPECIFIED; } -ADD_INTERFACE (Chord_name, "chord-name-interface", +ADD_INTERFACE (Chord_name, "A chord name.", + + "begin-of-line-visible");