]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rod.cc
Web-ja: update introduction
[lilypond.git] / lily / rod.cc
index 014296a32c70f385256cf98e21ea8f2534fd7f0d..9d9b6520fc640a46ab6bd07132aa5e0c63e96987 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1998--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1998--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -37,14 +37,12 @@ Rod::columnize ()
       || !item_drul_[RIGHT])
     return;
 
-  Direction d = LEFT;
-  do
+  for (LEFT_and_RIGHT (d))
     {
       Paper_column *pc = item_drul_[d]->get_column ();
       distance_ += -d * item_drul_[d]->relative_coordinate (pc, X_AXIS);
       item_drul_[d] = pc;
     }
-  while ((flip (&d)) != LEFT);
 }
 
 void