]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/crescendo.cc
release: 1.3.28
[lilypond.git] / lily / crescendo.cc
index 02b31c40c4eb6fd8d66d4dd12a1653adb48bff7f..481d30bca713b4c7335cf3542176dfec5a55b89a 100644 (file)
@@ -28,7 +28,7 @@ Crescendo::do_brew_molecule_p () const
   Real absdyn_dim = paper_l ()-> get_var ("crescendo_shorten");
   Real extra_left =  get_broken_left_end_align ();
 
-  SCM dir = get_elt_property("grow-dir");
+  SCM dir = get_elt_property("grow-direction");
   SCM dyns = get_elt_property ("dynamic-drul");
 
   if (!isdir_b (dir) || !gh_pair_p (dyns))
@@ -83,14 +83,14 @@ Crescendo * me = (Crescendo*)this;
   m->dim_.x () = Interval (0, width);
   m->dim_.y () = Interval (-2*height, 2*height);
 
-  Atom *a = new Atom(gh_list (ly_symbol2scm (hairpin),
+  SCM at = gh_list (ly_symbol2scm (hairpin),
                     gh_double2scm (thick),
                     gh_double2scm (width),
                     gh_double2scm (height),
                     gh_double2scm (continued ? height/2 : 0.0),
-                    SCM_UNDEFINED));
+                    SCM_UNDEFINED);
 
-  m->add_atom (a->self_scm_);
+  m->add_atom (at);
   m->translate_axis (extra_left, X_AXIS);
   return m;
 }