X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frod.cc;h=9d9b6520fc640a46ab6bd07132aa5e0c63e96987;hb=77267b700c377fd170abcbf4863728937038eb5e;hp=1198dee36fd13022aaaf9cdd50395a6c60943352;hpb=1c846b2c2348b4e0ca4a3c2e8fb267047ba2d203;p=lilypond.git diff --git a/lily/rod.cc b/lily/rod.cc index 1198dee36f..9d9b6520fc 100644 --- a/lily/rod.cc +++ b/lily/rod.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1998--2011 Han-Wen Nienhuys + Copyright (C) 1998--2015 Han-Wen Nienhuys 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_); }