]> git.donarmstrong.com Git - lilypond.git/commitdiff
Revert "stem-engraver.cc: recreate stem if in need of change when merging different...
authorDavid Kastrup <dak@gnu.org>
Mon, 18 Jul 2011 09:25:14 +0000 (11:25 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 18 Jul 2011 09:25:14 +0000 (11:25 +0200)
This reverts commit ba6c785e63f926c7ed47d62a482922df65764238.

The commit was accidental and may not be the best way to change the
type of a stem.

lily/stem-engraver.cc

index 03b404662b9bbf0ab6deb35f86e1abd323109675..fb545911478bab563907bd80b307cd30811bd02f 100644 (file)
@@ -31,7 +31,7 @@
 #include "stem-tremolo.hh"
 #include "stem.hh"
 #include "stream-event.hh"
-#include "pointer-group-interface.hh"
+
 #include "translator.icc"
 
 class Stem_engraver : public Engraver
@@ -156,16 +156,8 @@ Stem_engraver::acknowledge_rhythmic_head (Grob_info gi)
                                                 ds < 0 ? 1 << -ds : 1,
                                                 ds > 0 ? 1 << ds : 1));
       gi.event_cause ()->origin ()->warning (_ ("maybe input should specify polyphonic voices"));
-      if (ds == 1 && dc > 2) {
-       Grob *old_stem = stem_;
-       stem_=0;        
-       make_stem(gi);
-       extract_grob_set (old_stem, "note-heads", heads);
-       for (int i=heads.size(); i--;)
-         Stem::add_head(stem_, heads[i]);
-      }
     }
-  
+
   Stem::add_head (stem_, gi.grob ());
 }