]> git.donarmstrong.com Git - lilypond.git/commitdiff
define-grobs.scm: use a property for TrillPitch offset; issue 3465
authorKeith OHara <k-ohara5a5a@oco.net>
Sat, 23 Nov 2013 03:50:26 +0000 (19:50 -0800)
committerKeith OHara <k-ohara5a5a@oco.net>
Fri, 29 Nov 2013 02:58:23 +0000 (18:58 -0800)
scm/define-grobs.scm

index de27efca1e2ab013add0735a7dd2afb2b13b479f..2aeff64b0e39873e8ec6d608648d28c62cda2a83 100644 (file)
         (axes . (,X))
         (direction . ,RIGHT)
         (font-size . -4)
+        ;; minimum shift to the right, in case the parent note has no stem
+        (minimum-space . 2.5)
         (padding . 0.3)
         (side-axis . ,X)
         (stencil . ,parenthesize-elements)
         (stencils . ,parentheses-item::calc-parenthesis-stencils)
-        ;; offset a bit to the right, further if needed to clear the main note
-        (X-offset . ,(lambda (grob)
-                       (ly:side-position-interface::x-aligned-side grob 2.5)))
+        (X-offset . ,ly:side-position-interface::x-aligned-side)
         (Y-extent . ,grob::always-Y-extent-from-stencil)
         (meta . ((class . Item)
                  (interfaces . (axis-group-interface