]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grace-align-item.cc
release: 1.3.9
[lilypond.git] / lily / grace-align-item.cc
index 4da8f4b6b52d4c45f69664cda1a6234f84cf25dc..ed1989cd9b817fde2c5187d134f3d6ab3307b810 100644 (file)
@@ -10,6 +10,7 @@
 #include "grace-align-item.hh"
 #include "lookup.hh"
 #include "paper-column.hh"
+#include "paper-def.hh"
 
 Grace_align_item::Grace_align_item ()
 {
@@ -20,9 +21,11 @@ Grace_align_item::Grace_align_item ()
 void
 Grace_align_item::do_pre_processing ()
 {
-  Real nhw = lookup_l ()->notehead (2, "").dim_[X_AXIS].length();
+  Real nhw = // lookup_l ()->notehead (2, "").dim_[X_AXIS].length();
+    paper_l ()->get_var ("quartwidth");
+  
   threshold_interval_[MIN] = nhw* 1.5;
-  column_l ()->set_elt_property (contains_grace_scm_sym, SCM_BOOL_T);
+  column_l ()->set_elt_property ("contains-grace", SCM_BOOL_T);
 
   
   Axis_align_item::do_pre_processing ();
@@ -31,13 +34,9 @@ Grace_align_item::do_pre_processing ()
   translate_axis (-0.5* nhw, X_AXIS); // ugh.
 }
 
-void
-Grace_align_item::do_substitute_element_pointer (Score_element*o, Score_element*n)
-{
-  Axis_align_item::do_substitute_element_pointer (o,n);
-  Note_head_side::do_substitute_element_pointer( o,n);
-}
+
 void
 Grace_align_item::do_add_processing ()
 {
 }
+