]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grace-align-item.cc
release: 1.3.34
[lilypond.git] / lily / grace-align-item.cc
index 3d3df3ca0f17835da6b05043f6e2c1e4f48d2f12..0ddf8481b7476d78f75d3879d4bb4932b1768e49 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
@@ -19,16 +19,18 @@ Grace_align_item::Grace_align_item ()
 }
   
 void
-Grace_align_item::do_pre_processing ()
+Grace_align_item::before_line_breaking ()
 {
   Real nhw = // lookup_l ()->notehead (2, "").dim_[X_AXIS].length();
     paper_l ()->get_var ("quartwidth");
   
-  threshold_interval_[MIN] = nhw* 1.5;
+  set_elt_property ("threshold",
+                   gh_cons (gh_double2scm (nhw* 1.5),
+                            gh_double2scm (infinity_f)));
   column_l ()->set_elt_property ("contains-grace", SCM_BOOL_T);
 
   
-  Axis_align_item::do_pre_processing ();
+  Axis_align_item::before_line_breaking ();
   //  translate_axis (-0.5* nhw, X_AXIS); // ugh.
 }