From 99d6bb300e425bb86301eb370b0e9c57de9ee817 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sat, 4 Jul 2015 16:43:03 +0200 Subject: [PATCH] Issue 4481: \barNumberCheck has bad error location --- lily/apply-context-iterator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lily/apply-context-iterator.cc b/lily/apply-context-iterator.cc index ce3fd032e2..5ed628491c 100644 --- a/lily/apply-context-iterator.cc +++ b/lily/apply-context-iterator.cc @@ -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")); -- 2.39.5