From: fred Date: Tue, 26 Mar 2002 23:22:33 +0000 (+0000) Subject: lilypond-1.3.57 X-Git-Tag: release/1.5.59~1601 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0c7cb84706179175ef5f69ab456d7741e11e6388;p=lilypond.git lilypond-1.3.57 --- diff --git a/lily/line-of-score.cc b/lily/line-of-score.cc index 1c8f59d34c..dc78eb09da 100644 --- a/lily/line-of-score.cc +++ b/lily/line-of-score.cc @@ -179,27 +179,6 @@ Line_of_score::add_column (Paper_column*p) typeset_element (p); } -Link_array -Line_of_score::column_l_arr ()const -{ - Link_array acs - = Pointer_group_interface__extract_elements (this, (Paper_column*) 0, "columns"); - bool bfound = false; - for (int i= acs.size (); i -- ; ) - { - bool brb = acs[i]->breakable_b(); - bfound = bfound || brb; - - /* - the last column should be breakable. Weed out any columns that - seem empty. We need to retain breakable columns, in case - someone forced a breakpoint. - */ - if (!bfound || !acs[i]->used_b ()) - acs.del (i); - } - return acs; -} void fixup_refpoints (SCM s) @@ -344,5 +323,28 @@ Line_of_score::broken_col_range (Item const*l, Item const*r) const return ret; } +/** + Return all columns, but filter out any unused columns , since they might + disrupt the spacing problem. + */ +Link_array +Line_of_score::column_l_arr ()const +{ + Link_array acs + = Pointer_group_interface__extract_elements (this, (Paper_column*) 0, "columns"); + bool bfound = false; + for (int i= acs.size (); i -- ; ) + { + bool brb = acs[i]->breakable_b(); + bfound = bfound || brb; - + /* + the last column should be breakable. Weed out any columns that + seem empty. We need to retain breakable columns, in case + someone forced a breakpoint. + */ + if (!bfound || !acs[i]->used_b ()) + acs.del (i); + } + return acs; +}