X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-score.cc;h=028fb37a146e080a988ef63756fb50176054d3f6;hb=3920b02188c3c6b0190626a936c586fe687a4a2d;hp=e7a5f51247a9ac69ae1c6ffa603881255cc22c9f;hpb=52c2fa58a215d4d7218d7491fbac51e0de7df31e;p=lilypond.git diff --git a/lily/paper-score.cc b/lily/paper-score.cc index e7a5f51247..028fb37a14 100644 --- a/lily/paper-score.cc +++ b/lily/paper-score.cc @@ -99,7 +99,7 @@ Paper_score::get_columns () const vector Paper_score::calc_breaking () { - Constrained_breaking algorithm; + Constrained_breaking algorithm (this); vector sol; message (_ ("Calculating line breaks...") + " "); @@ -107,11 +107,8 @@ Paper_score::calc_breaking () int system_count = robust_scm2int (layout ()->c_variable ("system-count"), 0); if (system_count) algorithm.resize (system_count); - - algorithm.set_pscore (this); - sol = algorithm.solve (); - return sol; + return algorithm.solve (); } void