]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4481: \barNumberCheck has bad error location
authorDavid Kastrup <dak@gnu.org>
Sat, 4 Jul 2015 14:43:03 +0000 (16:43 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 6 Jul 2015 11:41:42 +0000 (13:41 +0200)
lily/apply-context-iterator.cc

index ce3fd032e26e3c12b6ab7e9bdc3e47e87a6d6551..5ed628491c530d5aa41cbb3e17ebc0e6100d0250 100644 (file)
@@ -35,9 +35,9 @@ void
 Apply_context_iterator::process (Moment m)
 {
   SCM proc = get_music ()->get_property ("procedure");
-
   if (ly_is_procedure (proc))
-    scm_call_1 (proc, get_outlet ()->self_scm ());
+    with_location (get_music ()->get_property ("origin"),
+                   proc, get_outlet ()->self_scm ());
   else
     get_music ()->origin ()->warning (_ ("\\applycontext argument is not a procedure"));