]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/spring.cc
release: 1.5.3
[lilypond.git] / lily / spring.cc
index 93ef33f59ef0327cfe0a2e687d80b6bd12c6b992..e63fee0891b0d1fab26bc63031b9015dd89b1721 100644 (file)
@@ -20,6 +20,11 @@ Spring::Spring ()
   strength_f_ =1.0;
 }
 
+/*
+
+ ugh : if we go from items to cols, we should adjust distance and strength.
+ */
+
 void
 Spring::add_to_cols ()
 {
@@ -28,6 +33,17 @@ Spring::add_to_cols ()
                                 distance_f_, strength_f_);
 }
 
+void
+Spring::set_to_cols( )
+{
+  Direction d = LEFT;
+  do
+    {
+      item_l_drul_[d] = item_l_drul_[d]->column_l ();
+    }
+  while (flip (&d) != LEFT);
+
+}
 
 Column_spring::Column_spring ()
 {