]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem.cc
* lily/dot-column.cc (side_position): reach stem via dots-> head->stem.
[lilypond.git] / lily / stem.cc
index 3c1bdc326c39c8c4275029390421a3ec317dfe92..accada587de29a7d753557bf096f4fb303f2f540 100644 (file)
@@ -261,11 +261,12 @@ Stem::calc_stem_end_position (SCM smob)
       if (dots)
        {
          Real dp = Staff_symbol_referencer::get_position (dots);
-         Real flagy = flag (me).extent (Y_AXIS)[-dir] * 2 / ss;
+         Interval flag_yext = flag (me).extent (Y_AXIS) * (2 / ss) + stem_end;
 
          /* Very gory: add myself to the X-support of the parent,
             which should be a dot-column. */
-         if (dir * (stem_end + flagy - dp) < 0.5)
+         
+         if (flag_yext.distance (dp) < 0.5)
            {
              Grob *par = dots->get_parent (X_AXIS);