Re: Strange loop executed only once!

2012-05-05 Thread Keith OHara
On Thu, 03 May 2012 16:20:45 -0700, Łukasz Czerwiński wrote: On 3 May 2012 04:18, Keith OHara wrote: On Wed, 02 May 2012 17:12:33 -0700, Łukasz Czerwiński And where to find what's min_length_fraction for? Googling that didn't help... It is a local variable holding [...] property of a Ledge

Re: Strange loop executed only once!

2012-05-03 Thread Łukasz Czerwiński
On 3 May 2012 04:18, Keith OHara wrote: > On Wed, 02 May 2012 17:12:33 -0700, Łukasz Czerwiński < > milimet...@gmail.com> wrote: > > On 22 April 2012 13:28, Han-Wen Nienhuys wrote: >> >> this also looks a little suspect: >>> >>> Real total_head_length = previous_extents[d].length () >>

Re: Strange loop executed only once!

2012-05-02 Thread Keith OHara
On Wed, 02 May 2012 17:12:33 -0700, Łukasz Czerwiński wrote: On 22 April 2012 13:28, Han-Wen Nienhuys wrote: this also looks a little suspect: Real total_head_length = previous_extents[d].length () + current_extents[d].length (); As for Keith's

Re: Strange loop executed only once!

2012-05-02 Thread Łukasz Czerwiński
On 22 April 2012 13:28, Han-Wen Nienhuys wrote: > On Sun, Apr 22, 2012 at 7:20 AM, Łukasz Czerwiński > wrote: > > Hi, > > > > I have spotted a strange loop in lily/ledger-line-spanner.cc (lines > 46-69): > > > > Direction d = UP; > > do > > { > > . > > } > > while (

Re: Strange loop executed only once!

2012-04-22 Thread Han-Wen Nienhuys
On Sun, Apr 22, 2012 at 7:20 AM, Łukasz Czerwiński wrote: > Hi, > > I have spotted a strange loop in lily/ledger-line-spanner.cc (lines 46-69): > > Direction d = UP; >   do >     { >       . >     } >   while (flip (&d) != DOWN); > > It will be executed only once - with d set to UP. To

Strange loop executed only once!

2012-04-22 Thread Łukasz Czerwiński
Hi, I have spotted a strange loop in lily/ledger-line-spanner.cc (lines 46-69): Direction d = UP; do { . } while (flip (&d) != DOWN); *It will be executed only once - with d set to UP.* To be executed for d = UP and then d = DOWN, it should be: while (flip (&d) != *