]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/engraver.cc
(interface-doc): prune Grob
[lilypond.git] / lily / engraver.cc
index 22a70a68070b6486e2014b7b5ce0c57a03bea13a..d8338972c935267add9cf1a438bc8a0f00c4d93d 100644 (file)
@@ -3,16 +3,17 @@
 
   Sourcefile of GNU LilyPond music type setter
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "music.hh"
 #include "engraver.hh"
 #include "engraver-group-engraver.hh"
 #include "grob.hh"
-#include "main.hh"
 #include "score-engraver.hh"
 #include "warn.hh"
+#include "spanner.hh"
+#include "item.hh"
 
 void
 Engraver::announce_grob (Grob_info inf)
@@ -31,13 +32,16 @@ Engraver::announce_grob (Grob* e, SCM cause)
     TODO: junk grob-info, and make a cause grob-property to store
     `causes' generically.
   */
-  
   if (unsmob_music (cause) || unsmob_grob (cause))
     e->set_grob_property ("cause", cause);
 
-  Grob_info i (e);
+  Grob_info i;
+  i.grob_ = e;
   if (!i.origin_trans_)
     i.origin_trans_ = this;
+
+
+
   get_daddy_grav ()->announce_grob (i);
 }
 
@@ -63,7 +67,6 @@ Engraver::process_music ()
 {
   
 }
-
 Engraver::Engraver()
 {
 }