]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/simple-spacer.cc
(add_columns): also compare
[lilypond.git] / 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)));
            }