]> git.donarmstrong.com Git - lilypond.git/commitdiff
(add_columns): also compare
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 3 Apr 2005 20:47:54 +0000 (20:47 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 3 Apr 2005 20:47:54 +0000 (20:47 +0000)
directly. Column rank doesn't distinguish between broken and
unbroken columns. This fixes large spaces before time sig changes.

lily/simple-spacer.cc

index 2b2529555c362219ea90df35e3596ab74eafa2d0..f641f854b0607392bd5a0a2177428068958b6c02 100644 (file)
@@ -423,7 +423,8 @@ Simple_spacer_wrapper::add_columns (Link_array<Grob> const &icols)
        {
          Grob *other = unsmob_grob (scm_caar (s));
          int oi = binsearch_links (cols, other, &compare_paper_column_rank);
-         if (oi >= 0)
+         if (oi >= 0
+             && cols[oi] == other)
            {
              spacer_->add_rod (i, oi, scm_to_double (scm_cdar (s)));
            }