]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie-formatting-problem.cc
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / lily / tie-formatting-problem.cc
index b157d4794c114f9845c24978fe84d182592e2ab0..79efa70146cc72a874e85c8639181bbfe94a05ab 100644 (file)
@@ -149,8 +149,9 @@ Tie_formatting_problem::set_column_chord_outline (vector<Item *> bounds,
           else
             {
               if (use_horizontal_spacing_ || !Stem::get_beam (stem))
-                stem_end_position = Stem::stem_end_position (stem) * staff_space * .5;
+                stem_end_position = stem->extent (stem, Y_AXIS)[get_grob_direction (stem)];
               else
+                // May want to change this to the stem's pure height...
                 stem_end_position = Stem::note_head_positions (stem)[get_grob_direction (stem)]
                                     * staff_space * .5;
             }
@@ -173,7 +174,7 @@ Tie_formatting_problem::set_column_chord_outline (vector<Item *> bounds,
               Grob *flag = Stem::flag (stem);
               if (flag)
                 {
-                  Grobcommony = stem->common_refpoint (flag, Y_AXIS);
+                  Grob *commony = stem->common_refpoint (flag, Y_AXIS);
                   boxes.push_back (Box (flag->extent (x_refpoint_, X_AXIS),
                                         flag->extent (commony, Y_AXIS)));
                 }
@@ -442,7 +443,8 @@ Tie_configuration *
 Tie_formatting_problem::get_configuration (int pos, Direction dir, Drul_array<int> columns,
                                            bool tune_dy) const
 {
-  int key_components[] =
+  int key_components[]
+  =
   {
     pos, dir, columns[LEFT], columns[RIGHT]
   };