]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/line-spanner.cc (broken_trend_offset): remove function.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 21 Jun 2003 00:18:38 +0000 (00:18 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 21 Jun 2003 00:18:38 +0000 (00:18 +0000)
(get_broken_offset): idem.
(brew_molecule): rewrite the line-break case.

* lily/line-spanner.cc (after_line_breaking): remove lines at the
start of a system.

lily/line-spanner.cc

index 7e1ed4b5a25615dc50f70519903bab3501a576b3..82caf5581468af2fd8bbcd5cf728013a2522d72d 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 static SCM
-line_atom (Grobme, Real thick, Real dx, Real dy)
+line_atom (Grob *me, Real thick, Real dx, Real dy)
 {
   SCM type = me->get_grob_property ("type");
   Real staff_space = Staff_symbol_referencer::staff_space (me);
@@ -64,7 +64,7 @@ line_atom (Grob* me, Real thick, Real dx, Real dy)
 }
 
 static SCM
-zigzag_atom (Grobme, Real thick, Real dx, Real dy)
+zigzag_atom (Grob *me, Real thick, Real dx, Real dy)
 {
   Real staff_space = Staff_symbol_referencer::staff_space (me);
   SCM ws = me->get_grob_property ("zigzag-width");
@@ -121,7 +121,7 @@ Line_spanner::after_line_breaking (SCM  g)
 
 
 Molecule
-Line_spanner::line_molecule (Grobme, Real thick, Real dx, Real dy)
+Line_spanner::line_molecule (Grob *me, Real thick, Real dx, Real dy)
 {
   Molecule mol;
   SCM type = me->get_grob_property ("type");
@@ -244,11 +244,11 @@ Line_spanner::brew_molecule (SCM smob)
       */
       
       int k = broken_spanner_index (me);
-      Spanner * parent_sp = dynamic_cast<Spanner*> (me->original_);
-      Spanner * next_sp  = parent_sp->broken_intos_ [k+1];
-      Item * next_bound = next_sp->get_bound (RIGHT);
+      Spanner *parent_sp = dynamic_cast<Spanner*> (me->original_);
+      Spanner *next_sp  = parent_sp->broken_intos_ [k+1];
+      Item *next_bound = next_sp->get_bound (RIGHT);
 
-      if (next_bound->break_status_dir())
+      if (next_bound->break_status_dir ())
        {
          programming_error ("no note heads for the line spanner on next line?"
                             " Confused.");
@@ -259,10 +259,10 @@ Line_spanner::brew_molecule (SCM smob)
       Grob *commonx = bound[LEFT]->common_refpoint (bound[RIGHT], X_AXIS);
       commonx = me->common_refpoint (commonx, X_AXIS);
       
-      Grob * next_common_y = line_spanner_common_parent (next_bound);
-      Grob * this_common_y = line_spanner_common_parent (bound[LEFT]);
+      Grob *next_common_y = line_spanner_common_parent (next_bound);
+      Grob *this_common_y = line_spanner_common_parent (bound[LEFT]);
 
-      Grob * all_common_y = me->common_refpoint (this_common_y, Y_AXIS);
+      Grob *all_common_y = me->common_refpoint (this_common_y, Y_AXIS);
       
       Interval next_ext  = next_bound->extent (next_common_y, Y_AXIS);
       Interval this_ext  = bound[LEFT]->extent (this_common_y, Y_AXIS);