From: fred Date: Tue, 3 Dec 1996 22:10:21 +0000 (+0000) Subject: lilypond-0.0.14 X-Git-Tag: release/1.5.59~6685 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9432ba3aaf9c8d9ec9e378c2c9a2e98a9c4744fc;p=lilypond.git lilypond-0.0.14 --- diff --git a/hdr/pcol.hh b/hdr/pcol.hh index f6a38d57aa..1f3e15df3f 100644 --- a/hdr/pcol.hh +++ b/hdr/pcol.hh @@ -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; diff --git a/src/pscore.cc b/src/pscore.cc index c12f6ddce6..378ad37f0a 100644 --- a/src/pscore.cc +++ b/src/pscore.cc @@ -199,11 +199,6 @@ PScore::print() const void PScore::preprocess() { -#if 0 - for (PCursor ic(its); ic.ok(); ic++){ - ic->preprocess(); - } -#endif } void @@ -222,11 +217,11 @@ PScore::postprocess() PCursor PScore::find_col(const PCol *c)const { - PCursor 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