X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Falign-interface.cc;h=216323644f62dba718dc1c9c8b6139df65149265;hb=refs%2Fheads%2Fbugs%2F572290;hp=92c405391dfeb1d00465c629e034fcef8c49365a;hpb=bec6d0f547819d4003c5ce987f8fe589818e4712;p=lilypond.git diff --git a/lily/align-interface.cc b/lily/align-interface.cc index 92c405391d..216323644f 100644 --- a/lily/align-interface.cc +++ b/lily/align-interface.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2000--2007 Han-Wen Nienhuys + (c) 2000--2009 Han-Wen Nienhuys */ #include "align-interface.hh" @@ -224,8 +224,10 @@ Align_interface::get_extents_aligned_translates (Grob *me, } } + // So far, we've computed the translates for all the non-empty elements. + // Here, we set the translates for the empty elements: an empty element + // gets the same translation as the last non-empty element before it. vector all_translates; - if (!translates.empty ()) { Real w = translates[0];