]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rod.cc
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / lily / rod.cc
index 1198dee36fd13022aaaf9cdd50395a6c60943352..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
@@ -54,7 +52,7 @@ Rod::add_to_cols ()
   if (item_drul_[LEFT] != item_drul_[RIGHT]
       && item_drul_[LEFT] && item_drul_[RIGHT])
     Spaceable_grob::add_rod (item_drul_[LEFT],
-                            item_drul_[RIGHT],
-                            distance_);
+                             item_drul_[RIGHT],
+                             distance_);
 }