]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie.cc
fix footer position in generated html files
[lilypond.git] / lily / tie.cc
index e14074dc4fd77b8696ed437f7af8683598f0b8ba..d11153aaab654981e13c48e1befd8bf2303e664c 100644 (file)
@@ -71,7 +71,7 @@ Tie::get_position (Grob *me)
     {
       Grob *h = head (me, d);
       if (h)
-       return (int) Staff_symbol_referencer::get_position (h);
+       return (int) rint (Staff_symbol_referencer::get_position (h));
     }
   while (flip (&d) != LEFT);
 
@@ -122,7 +122,9 @@ Tie::get_default_dir (Grob *me)
       Grob *s = stems[LEFT] ? stems[LEFT] : stems[RIGHT];
       return -get_grob_direction (s);
     }
-
+  else if (int p = get_position (me))
+    return Direction (sign (p));
+  
   return UP;
 }
 
@@ -206,7 +208,7 @@ Tie::calc_control_points (SCM smob)
       (void) yparent->get_property ("positioning-done");
     }
 
-  if (!scm_is_pair (me->get_property ("control-points")))
+  if (!scm_is_pair (me->get_property_data (ly_symbol2scm ("control-points"))))
     {
       set_default_control_points (me);
     }
@@ -287,6 +289,8 @@ ADD_INTERFACE (Tie,
               "details "
               "direction "
               "line-thickness " 
+              "quant-score "
+              "staff-position "
               "thickness "
               );