]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/staff-spacing.cc
Release: bump Welcome versions.
[lilypond.git] / lily / staff-spacing.cc
index c414268f26b6f685c68a8365708123fd9c9a034f..c8e51f56f8ee4585ac4b5242c4151e238dd1d3b6 100644 (file)
@@ -44,7 +44,7 @@ using namespace std;
 Real
 Staff_spacing::optical_correction (Grob *me, Grob *g, Interval bar_height)
 {
-  if (!g || !Note_column::has_interface (g))
+  if (!g || !has_interface<Note_column> (g))
     return 0;
 
   Grob *stem = Note_column::get_stem (g);
@@ -55,7 +55,7 @@ Staff_spacing::optical_correction (Grob *me, Grob *g, Interval bar_height)
       Direction d = get_grob_direction (stem);
       if (Stem::is_normal_stem (stem) && d == DOWN)
         {
-          Interval stem_posns = stem->pure_height (stem, 0, INT_MAX);
+          Interval stem_posns = stem->pure_y_extent (stem, 0, INT_MAX);
 
           stem_posns.intersect (bar_height);