]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 677: \score markup confuses paper settings
authorDavid Kastrup <dak@gnu.org>
Mon, 31 Dec 2012 17:15:41 +0000 (18:15 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 9 Jan 2013 06:51:47 +0000 (07:51 +0100)
I actually have no idea whether this is the right fix, but it seems to
do something related to the TODO comments and the issue report.

lily/score-scheme.cc

index 7a306af442703f7faf35683c048d5863a1605363..98ff693ad2f895aa17967ffac7fe8b0c560d93b6 100644 (file)
@@ -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;
 }