]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/hairpin.cc
(Automatic staff changes):
[lilypond.git] / lily / hairpin.cc
index 28b5a0910f5ef5ca1fc5c3937d06322970b6c80a..d5c17d720949a9182aa911a93d00563e52bece48 100644 (file)
@@ -13,7 +13,7 @@
 #include "spanner.hh"
 #include "font-interface.hh"
 #include "dimensions.hh"
-#include "paper-def.hh"
+#include "output-def.hh"
 #include "warn.hh"
 #include "paper-column.hh"
 #include "lookup.hh"
@@ -35,13 +35,7 @@ Hairpin::print (SCM smob)
   
   Direction grow_dir = to_dir (s);
 
-
-  /* Ugh, must be same as Text_spanner::print.  */
-
-  /*
-    Ugh. property name is not general.
-   */
-  Real padding = ly_scm2double (me->get_property ("if-text-padding"));
+  Real padding = ly_scm2double (me->get_property ("bound-padding"));
  
   Drul_array<bool> broken;
   Drul_array<Item*> bounds ;
@@ -136,5 +130,5 @@ Hairpin::print (SCM smob)
 
 ADD_INTERFACE (Hairpin, "hairpin-interface",
   "A hairpin (de)crescendo.",
-  "grow-direction height if-text-padding");
+  "grow-direction height bound-padding");