]> git.donarmstrong.com Git - lilypond.git/commitdiff
Make a regression test fail more obviously, if it fails.
authorKeith OHara <k-ohara5a5a@oco.net>
Wed, 21 Mar 2012 06:15:57 +0000 (23:15 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Thu, 22 Mar 2012 06:18:06 +0000 (23:18 -0700)
input/regression/accidental-broken-tie-spacing.ly
lily/item.cc

index b9eccd8ced4bbb2374869848c5de4dbd6ac18780..2284562fa3277b4ebd48c60fad61dd3476955092 100644 (file)
@@ -1,11 +1,15 @@
 \version "2.14.0"
+\paper { ragged-right = ##t }
 
 \header {
   texidoc = "When a tie is broken, the spacing engine must consider the
-accidental after the line break, to prevent a collision from occurring."
+accidental after the line break.  The second and third lines should have
+the same note spacing."
 }
 
-{ \key g \major gis''1~ \break gis''4
-\repeat unfold 43 {d4 \noBreak} }
+{ \key bes \major r1 \break
+  eses''4 r2 eses''4~ \break
+  eses''4 r2 f''4
+}
 
 
index 6ea5643a5445e7d791a119479e73d54a5fe7aead..0c3169a7766f31860ef77b978ad7829c017f58b1 100644 (file)
@@ -241,6 +241,10 @@ Item::pure_height (Grob *g, int start, int end)
 {
   if (cached_pure_height_valid_)
     return cached_pure_height_ + pure_relative_y_coordinate (g, start, end);
+  /* Note: cached_pure_height_ does not notice if start changes, implicitly
+     assuming that Items' pure_heights do not depend on 'start' or 'end'.
+     Accidental_interface::pure_height(), however, does depend on 'start'.
+  */
 
   cache_pure_height (Grob::pure_height (this, start, end));
   return cached_pure_height_ + pure_relative_y_coordinate (g, start, end);