X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-score.cc;h=0d7cbfdddf4058ec383c5200b22b87144cfc64f4;hb=0cf97b5cdceecbba937f43ac827f4065aad5001e;hp=8769502ec9a581cc74526a68f9a875edad07cc3f;hpb=e319b8b2e19181a6e0864139bd94a36d66adb602;p=lilypond.git diff --git a/lily/paper-score.cc b/lily/paper-score.cc index 8769502ec9..0d7cbfdddf 100644 --- a/lily/paper-score.cc +++ b/lily/paper-score.cc @@ -16,7 +16,6 @@ #include "paper-score.hh" #include "paper-column.hh" #include "scope.hh" -#include "word-wrap.hh" #include "gourlay-breaking.hh" #include "paper-stream.hh" #include "paper-outputter.hh" @@ -57,10 +56,9 @@ Paper_score::typeset_element (Score_element * elem_p) elem_p->pscore_l_ = this; // take over protection. - assert (elem_p->self_scm_ != SCM_EOL); - SCM_CDR(protected_scms_) = gh_cons (elem_p->self_scm_, + SCM_CDR(protected_scms_) = gh_cons (elem_p->element_property_alist_, SCM_CDR (protected_scms_)); - scm_unprotect_object (elem_p->self_scm_); + scm_unprotect_object (elem_p->element_property_alist_); SCM p = elem_p->remove_elt_property (break_helper_only_scm_sym); if (p != SCM_BOOL_F) @@ -119,27 +117,12 @@ Paper_score::calc_breaking () { Break_algorithm *algorithm_p=0; Array sol; - bool try_wrap = !paper_l_->get_var ("castingalgorithm"); - if (!try_wrap) - { - algorithm_p = new Gourlay_breaking ; - algorithm_p->set_pscore (this); - sol = algorithm_p->solve (); - delete algorithm_p; - if (! sol.size ()) - { - warning (_ ("Can't solve this casting problem exactly; reverting to Word_wrap")); - try_wrap = true; - } - } - if (try_wrap) - { - algorithm_p = new Word_wrap; - algorithm_p->set_pscore (this); - sol = algorithm_p->solve (); - delete algorithm_p; - } + algorithm_p = new Gourlay_breaking ; + algorithm_p->set_pscore (this); + sol = algorithm_p->solve (); + delete algorithm_p; + return sol; }