]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/dot-column-engraver.cc
release: 1.1.1
[lilypond.git] / lily / dot-column-engraver.cc
index 04ae0bfba46d236bd4210ce3a6eaa1321549916a..771963e3486929b45d9bb50b9fdf260169ad1d06 100644 (file)
@@ -30,13 +30,10 @@ Dot_column_engraver::do_pre_move_processing ()
 void
 Dot_column_engraver::acknowledge_element (Score_element_info info)
 {
-  Item * i=info.elem_l_->access_Item ();
-  
-  if (! (i && i->is_type_b (Rhythmic_head::static_name ())))
+  Rhythmic_head * h = dynamic_cast<Rhythmic_head*>(info.elem_l_);
+  if (!h)
       return;
 
-  Rhythmic_head * h = (Rhythmic_head*)i;
-  
   if (!h->dots_l_)
     return;