]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem.cc
Set context-id for implicit voices in polyphony shorthand.
[lilypond.git] / lily / stem.cc
index 77c53006f0eac53433c95a115061f23ff7806b71..074620e06956a9d8e304a33064509b24333fd015 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1996--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1996--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
   Jan Nieuwenhuizen <janneke@gnu.org>
 
   TODO: This is way too hairy
@@ -265,7 +265,10 @@ Stem::pure_height (SCM smob,
        iv = Interval (-len, 0);
 
       if (!hp.is_empty ())
-       iv.translate (hp[dir] * ss / 2);
+       {
+         iv.translate (hp[dir] * ss / 2);
+         iv.add_point (hp[-dir] * ss / 2);
+       }
 
       /* extend the stem (away from the head) to cover the staff */
       if (dir == UP)