From 9432ba3aaf9c8d9ec9e378c2c9a2e98a9c4744fc Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 3 Dec 1996 22:10:21 +0000 Subject: [PATCH] lilypond-0.0.14 --- hdr/pcol.hh | 3 ++- src/pscore.cc | 15 +++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) 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 -- 2.39.5