X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgrob.cc;h=a3f41a856d3a6c90a01bfb8e8dfd11354b24b3bc;hb=0ed6c4f5d241424be86f34fda2cc298932cb37b0;hp=78be89e399f147c6cefb42428e7896bd204308c9;hpb=ac6c83f047635535d0481a15654c13e776334dc6;p=lilypond.git diff --git a/lily/grob.cc b/lily/grob.cc index 78be89e399..a3f41a856d 100644 --- a/lily/grob.cc +++ b/lily/grob.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--2007 Han-Wen Nienhuys + (c) 1997--2009 Han-Wen Nienhuys */ #include "grob.hh" @@ -703,7 +703,6 @@ Grob::stencil_width (SCM smob) } - Grob * common_refpoint_of_list (SCM elist, Grob *common, Axis a) { @@ -722,14 +721,11 @@ common_refpoint_of_list (SCM elist, Grob *common, Axis a) Grob * common_refpoint_of_array (vector const &arr, Grob *common, Axis a) { - for (vsize i = arr.size (); i--;) - if (Grob *s = arr[i]) - { - if (common) - common = common->common_refpoint (s, a); - else - common = s; - } + for (vsize i = 0; i < arr.size (); i++) + if (common) + common = common->common_refpoint (arr[i], a); + else + common = arr[i]; return common; }