X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fchord-name.cc;h=3ffc591bd83f649988cef92f41f53138cca542c4;hb=f13c054f0795e10f06931a267af51220a6b9fc66;hp=360edb564813c3aed5394165a2db6cf4cc40bf94;hpb=58bcc84c9480dae1b21bc24d8396b91fe19e0131;p=lilypond.git diff --git a/lily/chord-name.cc b/lily/chord-name.cc index 360edb5648..3ffc591bd8 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,16 @@ 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 ()) - - me->get_system ()->spanned_rank_iv ()[LEFT] > 1) + if (me->get_column ()->get_rank () + - me->get_system ()->spanned_rank_interval ()[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"); + + /* properties */ + "begin-of-line-visible " + );