X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fscore-scheme.cc;h=98ff693ad2f895aa17967ffac7fe8b0c560d93b6;hb=bb0acf78567a60b30623792e87399f695ac26d71;hp=7a306af442703f7faf35683c048d5863a1605363;hpb=e48715dc917b0e1c8382dc47e2b5e193d3184000;p=lilypond.git diff --git a/lily/score-scheme.cc b/lily/score-scheme.cc index 7a306af442..98ff693ad2 100644 --- a/lily/score-scheme.cc +++ b/lily/score-scheme.cc @@ -130,16 +130,11 @@ LY_DEFINE (ly_score_embedded_format, "ly:score-embedded-format", if (!score_def) return SCM_BOOL_F; - score_def = score_def->clone (); - SCM prot = score_def->unprotect (); - - /* TODO: SCORE_DEF should be scaled according to OD->parent_ or OD - itself. */ + score_def = scale_output_def (score_def, output_scale (od)); score_def->parent_ = od; - SCM context = ly_run_translator (sc->get_music (), score_def->self_scm ()); + SCM context = ly_run_translator (sc->get_music (), score_def->unprotect ()); SCM output = ly_format_output (context); - scm_remember_upto_here_1 (prot); return output; }