lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange loop executed only once!


From: Łukasz Czerwiński
Subject: Strange loop executed only once!
Date: Sun, 22 Apr 2012 12:20:17 +0200

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) != UP);

Could someone take a look at this?


Łukasz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]