X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frod.cc;h=9d9b6520fc640a46ab6bd07132aa5e0c63e96987;hb=a6a51abfd0195a3cf7d6ea095cf69808852f21ce;hp=014296a32c70f385256cf98e21ea8f2534fd7f0d;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/rod.cc b/lily/rod.cc index 014296a32c..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