X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspacing-interface.cc;h=b8b3cf0711a96922b35ed987f52ae25df18dc2bd;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=944618bf5b48a6414c54f6f965e887832715647e;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/spacing-interface.cc b/lily/spacing-interface.cc index 944618bf5b..b8b3cf0711 100644 --- a/lily/spacing-interface.cc +++ b/lily/spacing-interface.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2007--2011 Joe Neeman + Copyright (C) 2007--2015 Joe Neeman LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -55,8 +55,7 @@ Spacing_interface::skylines (Grob *me, Grob *right_col) Drul_array columns (left_col, right_col); - Direction d = LEFT; - do + for (LEFT_and_RIGHT (d)) { for (vsize i = 0; i < items[d].size (); i++) { @@ -88,7 +87,6 @@ Spacing_interface::skylines (Grob *me, Grob *right_col) } } } - while (flip (&d) != LEFT); return skylines; } @@ -110,7 +108,7 @@ Spacing_interface::right_column (Grob *me) if (!me->is_live ()) return 0; - Grob_array *a = unsmob_grob_array (me->get_object ("right-items")); + Grob_array *a = Grob_array::unsmob (me->get_object ("right-items")); Item *mincol = 0; int min_rank = INT_MAX; for (vsize i = 0; a && i < a->size (); i++)