From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Fri, 20 Jan 2006 17:43:18 +0000 (+0000)
Subject: * lily/tie-formatting-problem.cc (generate_configuration):
X-Git-Tag: release/2.7.28~4
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cdb19017dce37a6de3ad79f5755c1f85036b818a;p=lilypond.git

* lily/tie-formatting-problem.cc (generate_configuration):

* lily/tie-formatting-problem.cc (peak_around): new function.
(score_configuration): use sliding criterion for staff line collisions.
(score_configuration): idem for dot collisions.
(generate_configuration): use separate stem_gap for gap to stem.
---

diff --git a/ChangeLog b/ChangeLog
index 2d481225fb..742d8a559e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-01-20  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+	* lily/tie-formatting-problem.cc (generate_configuration): 
+
 	* input/regression/tie-chord.ly: use generateTiePattern to
 	simplify file.
 
diff --git a/lily/tie-formatting-problem.cc b/lily/tie-formatting-problem.cc
index 91a96d48b1..f9d92bf616 100644
--- a/lily/tie-formatting-problem.cc
+++ b/lily/tie-formatting-problem.cc
@@ -356,7 +356,11 @@ Tie_formatting_problem::generate_configuration (int pos, Direction dir) const
 	}
     }
   
-  conf->attachment_x_ = get_attachment (y + conf->delta_y_);
+  /*
+    we don't recompute attachment_x_ to take changed Y (through
+    delta_Y) into account. Doing would make ties go into small holes between heads, which
+    means we get collisions with neighboring heads.
+   */
   conf->attachment_x_.widen ( - details_.x_gap_);
 
   Direction d = LEFT;