]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #661.
authorNeil Puttock <n.puttock@gmail.com>
Fri, 22 Aug 2008 00:28:48 +0000 (01:28 +0100)
committerNeil Puttock <n.puttock@gmail.com>
Thu, 25 Sep 2008 22:44:45 +0000 (23:44 +0100)
Remove bounding box from stencil in Line_interface::make_zigzag_line ().

input/regression/line-style-zigzag-spacing.ly [new file with mode: 0644]
lily/line-interface.cc

diff --git a/input/regression/line-style-zigzag-spacing.ly b/input/regression/line-style-zigzag-spacing.ly
new file mode 100644 (file)
index 0000000..0d9368a
--- /dev/null
@@ -0,0 +1,19 @@
+\version "2.11.57"
+
+\header {
+  texidoc = "Setting zigzag style for spanners does not cause
+spacing problems: in this example, the first text markup and
+zigzag trillspanner have the same outside staff positioning as
+the second markup and default trillspanner.
+"
+}
+
+\relative c' {
+  c1^"text"
+  \override TrillSpanner #'style = #'zigzag
+  c1\startTrillSpan
+  c2^\stopTrillSpan c^"text"
+  \revert TrillSpanner #'style
+  c1\startTrillSpan
+  c1^\stopTrillSpan
+}
index c662d77d9f84f42b97e62d71f2c17b7320f113fc..771ed69b5928bb15c1f662472879363935cb7265 100644 (file)
@@ -111,13 +111,7 @@ Line_interface::make_zigzag_line (Grob *me,
       total.add_stencil (moved_squiggle);
     }
 
-  Box b;
-  b.add_point (Offset (0, 0));
-  b.add_point (dz);
-  b[X_AXIS].widen (thick / 2);
-  b[Y_AXIS].widen (thick / 2);
-
-  return Stencil (b, total.expr ());
+  return total;
 }