]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/hairpin.cc
hairpin.cc: transition between spanners aligns on note; issue 1216
[lilypond.git] / lily / hairpin.cc
index 403e7bcd083bf4f19f96e41ee9da89f9108adce0..7d31712df4c4ac45d3ea83f45de958ab293754d9 100644 (file)
@@ -220,9 +220,9 @@ Hairpin::print (SCM smob)
                       else
                         x_points[d] = e.center () - d * padding / 3;
                     }
-                  // Our neighbor is a dynamic text spanner, so add the
-                  // same amount of padding as for text dynamics
-                  else
+                  // Our neighbor is a dynamic text spanner.
+                  // If we end on the text, pad as for text dynamics
+                  else if (d == RIGHT)
                     x_points[d] = e[-d] - d * padding;
                 }
               else