]> git.donarmstrong.com Git - lilypond.git/commitdiff
Measure 'staff-padding' to reference points; issue 3026
authorKeith OHara <k-ohara5a5a@oco.net>
Sun, 23 Dec 2012 21:13:44 +0000 (13:13 -0800)
committerKeith OHara <k-ohara5a5a@oco.net>
Sat, 21 Sep 2013 05:27:18 +0000 (22:27 -0700)
lily/side-position-interface.cc
scm/define-grobs.scm

index e3830d3d2f7d5484f8e3291e58385808aa64f491..54b5cb162b5c25739ddd15a7061062e9e75c38f6 100644 (file)
@@ -360,8 +360,8 @@ Side_position_interface::aligned_side (Grob *me, Axis a, bool pure, int start, i
     }
 
   /*
-    Maintain a minimum distance to the staff. This is similar to side
-    position with padding, but it will put adjoining objects on a row if
+    Ensure 'staff-padding' from my refpoint to the staff.  This is similar to
+    side-position with padding, but it will put adjoining objects on a row if
     stuff sticks out of the staff a little.
   */
   Grob *staff = Staff_symbol_referencer::get_staff_symbol (me);
@@ -404,7 +404,7 @@ Side_position_interface::aligned_side (Grob *me, Axis a, bool pure, int start, i
           Real staff_position = staff->maybe_pure_coordinate (common, Y_AXIS, pure, start, end);
           Interval staff_extent = staff->maybe_pure_extent (staff, a, pure, start, end);
           Real diff = (dir * staff_extent[dir] + staff_padding
-                       - dir * (total_off + iv[-dir])
+                       - dir * total_off
                        + dir * (staff_position - parent_position));
           total_off += dir * max (diff, 0.0);
         }
index 040f3fc2dd54d6adbe899c9f643a1df50c07c9ed..9838d2deeb87baa985b5a3f5d72a0fc422ee1a81 100644 (file)
         (color . ,(grob::inherit-parent-property
                    X 'color))
         (self-alignment-X . ,CENTER)
-        (staff-padding . 0.2)
+        (staff-padding . 0.7)
         (stencil . ,ly:text-interface::print)
         (X-offset . ,(ly:make-simple-closure
                       `(,+
         (outside-staff-priority . 400)
         (padding . 0.5)
         (shorten-pair . (0.0 . -0.6))
-        (staff-padding . 1.0)
+        (staff-padding . 2.0)
         (stencil . ,ly:ottava-bracket::print)
         (style . dashed-line)
         (vertical-skylines . ,grob::unpure-vertical-skylines-from-stencil)