]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/spacing-interface.cc
Run grand-replace (issue 3765)
[lilypond.git] / lily / spacing-interface.cc
index 944618bf5b48a6414c54f6f965e887832715647e..9e11cfa73a3545b3329c62f03ed22a7aa48585dc 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2007--2011 Joe Neeman <joeneeman@gmail.com>
+  Copyright (C) 2007--2014 Joe Neeman <joeneeman@gmail.com>
 
   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<Grob *> 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;
 }