]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rod.cc
release: 1.5.25
[lilypond.git] / lily / rod.cc
index 15b4c7a8085bb13eb097178375d042e2aff5d622..7fcfcbc52d6dbb997a61aaa4b85310db45c2d1e0 100644 (file)
@@ -3,15 +3,14 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1998--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 #include "rod.hh"
 #include "paper-column.hh"
 #include "debug.hh"
 #include "dimensions.hh"
-#include "separation-item.hh"
-
+#include "spaceable-grob.hh"
 
 Rod::Rod ()
 {
@@ -20,11 +19,6 @@ Rod::Rod ()
 }
 
 
-Column_rod::Column_rod ()
-{
-  distance_f_ = 0;
-  other_l_ = 0;
-}
 
 void
 Rod::columnize ()
@@ -41,9 +35,10 @@ Rod::columnize ()
 void
 Rod::add_to_cols ()
 {
-  columnize();
+  columnize ();
   if (item_l_drul_[LEFT] != item_l_drul_[RIGHT])
-    dynamic_cast<Paper_column*> (item_l_drul_[LEFT])->
-      add_rod(dynamic_cast<Paper_column*>(item_l_drul_[RIGHT]), distance_f_ );
+    Spaceable_grob::add_rod (item_l_drul_[LEFT],
+                               item_l_drul_[RIGHT],
+                               distance_f_);
 }