]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie-formatting-problem.cc
Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / lily / tie-formatting-problem.cc
index 60d9e1bc11171e637dc69171d4de15423b8ee40d..527091267f9d2bbf31bb9568af3a948b81a4fd8f 100644 (file)
@@ -48,7 +48,7 @@ Tie_formatting_problem::get_attachment (Real y, Drul_array<int> columns) const
       Tuple2<int> key (columns[d], int (d));
       Chord_outline_map::const_iterator i (chord_outlines_.find (key));
       if (i == chord_outlines_.end ())
-       programming_error ("Can't find chord outline");
+       programming_error ("Cannot find chord outline");
       else
        attachments[d] = i->second.height (y);
     }
@@ -174,8 +174,9 @@ Tie_formatting_problem::set_column_chord_outline (vector<Item*> bounds,
        boxes.push_back (Box (x, y));
     }
   while (flip (&updowndir) != DOWN);
-  
-  chord_outlines_[key] = Skyline (boxes, 4, Y_AXIS, -dir);
+
+  /* todo: the horizon_padding is somewhat arbitrary */
+  chord_outlines_[key] = Skyline (boxes, 0.1, Y_AXIS, -dir);
   if (bounds[0]->break_status_dir ())
     {
       Real x = robust_relative_extent (bounds[0],  x_refpoint_, X_AXIS)[-dir];