]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.14
authorfred <fred>
Tue, 3 Dec 1996 22:10:21 +0000 (22:10 +0000)
committerfred <fred>
Tue, 3 Dec 1996 22:10:21 +0000 (22:10 +0000)
hdr/pcol.hh
src/pscore.cc

index f6a38d57aab18c8a6ca7742fcbda5f64c1700357..1f3e15df3fd86d80db393398a232aa704f87e2ae 100644 (file)
@@ -37,7 +37,8 @@ struct PCol {
     PScore * pscore_;
 
     /****************/
-
+    /// which  one (left =0)
+    int rank() const;
     /// does this column have items, does it have spacings attached?
     bool used() const;
     
index c12f6ddce65dabec67f7fecedf0465293158c4d0..378ad37f0a9b980df7986c33968a1b73ac9103a2 100644 (file)
@@ -199,11 +199,6 @@ PScore::print() const
 void
 PScore::preprocess()
 {
-#if 0
-    for (PCursor<Item*> ic(its); ic.ok(); ic++){
-       ic->preprocess();
-    }
-#endif 
 }
 
 void
@@ -222,11 +217,11 @@ PScore::postprocess()
 PCursor<PCol *>
 PScore::find_col(const PCol *c)const
 {
-    PCursor<PCol*> cc(cols);
-    for (; cc.ok(); cc++)
-       if (cc.ptr() == c || cc->prebreak == c || cc->postbreak == c)
-           return cc;
-    return cc;
+    PCol*what = (PCol*)c;
+    if (what->daddy )
+       what = what -> daddy;
+    
+    return cols.find(what);
 }
 
 void