]> git.donarmstrong.com Git - lilypond.git/commitdiff
really fix #171
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 8 Dec 2006 17:51:35 +0000 (18:51 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 8 Dec 2006 17:51:35 +0000 (18:51 +0100)
input/regression/tie-broken-minimum-length.ly [new file with mode: 0644]
lily/spanner.cc

diff --git a/input/regression/tie-broken-minimum-length.ly b/input/regression/tie-broken-minimum-length.ly
new file mode 100644 (file)
index 0000000..51f9708
--- /dev/null
@@ -0,0 +1,20 @@
+
+\version "2.11.0"
+
+\header {
+
+  texidoc = " Broken ties honor @code{minimum-length} also.  This tie
+has a @code{minimum-length} of 5."
+
+}
+
+\relative {
+  \override Tie #'minimum-length = #5
+  f2. f16  f  f  f ~ | \break
+  f1
+}
+
+\paper {
+  indent = 0.0\mm
+  line-width = 40.0\mm
+}
index 61051bb9ddd132645c52f71ae06c6668396f476f..c0ac823b02b5329f8c7991b1f019aca551e1512f 100644 (file)
@@ -343,17 +343,17 @@ Spanner::set_spacing_rods (SCM smob)
 
       System *root = get_root_system (me);
       vector<Item*> cols (root->broken_col_range (sp->get_bound (LEFT)->get_column (),
-                                                 sp->get_bound (LEFT)->get_column ()));
+                                                 sp->get_bound (RIGHT)->get_column ()));
 
-      if (cols.size () )
+      if (cols.size ())
        {
          Rod r ;
          r.item_drul_[LEFT] = sp->get_bound (LEFT);
-         r.item_drul_[RIGHT] =cols[0];
+         r.item_drul_[RIGHT] = cols[0]->find_prebroken_piece (LEFT);
          r.distance_ = robust_scm2double (num_length, 0);
          r.add_to_cols ();
          
-         r.item_drul_[LEFT] = cols.back ();
+         r.item_drul_[LEFT] = cols.back ()->find_prebroken_piece (RIGHT);
          r.item_drul_[RIGHT] = sp->get_bound (RIGHT);
          r.add_to_cols ();
        }