]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/chord-name.cc
patch::: 1.5.41.jcn1
[lilypond.git] / lily / chord-name.cc
index 5595759236497b5e46ad44620b9483ac9ef7e2f5..4ddf833c2138393d16d854fc2a96c3b984a51491 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1999--2001 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c)  1999--2002 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "chord-name.hh"
@@ -20,18 +20,13 @@ MAKE_SCHEME_CALLBACK (Chord_name,after_line_breaking,1);
 SCM
 Chord_name::after_line_breaking (SCM smob)
 {
-  Item* me = dynamic_cast<Item*> (unsmob_grob (smob));
+  Item* me = unsmob_item (smob);
   assert (me);
     
   SCM s = me->get_grob_property ("begin-of-line-visible");
   if (to_boolean (s))
     {
       if (Paper_column::rank_i (me->column_l ()) -
-         /*
-           hmm, what's my column number in this line?
-           why doesn't this work?
-           me->line_l ()->rank_i_ > 2)
-         */
          me->line_l ()->spanned_rank_iv ()[LEFT] > 1)
        me->suicide ();
     }