]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/pitch-squash-engraver.cc
release: 1.3.69
[lilypond.git] / lily / pitch-squash-engraver.cc
index 4851cee02cfdbd1faa72b28f081e62e4174b90e8..027e73f37e055107819d3f61a13181865198da02 100644 (file)
@@ -3,23 +3,23 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
-
-#include "pitch-squash-engraver.hh"
+#include "staff-symbol-referencer.hh"
 #include "note-head.hh"
+#include "pitch-squash-engraver.hh"
+#include "rhythmic-head.hh"
 
 void
 Pitch_squash_engraver::acknowledge_element (Score_element_info i)
 {
-  if (i.elem_l_->is_type_b (Note_head::static_name ()))
+  if (Note_head::has_interface (i.elem_l_))
     {
-      Note_head * nl = (Note_head*)dynamic_cast <Item *> (i.elem_l_);
-      nl->position_i_  =0;
+      Staff_symbol_referencer::set_position (i.elem_l_,0);
     }
 }
 
 ADD_THIS_TRANSLATOR (Pitch_squash_engraver);
-IMPLEMENT_IS_TYPE_B1(Pitch_squash_engraver, Engraver);
+