]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/context-property.cc
* The grand 2005-2006 replace.
[lilypond.git] / lily / context-property.cc
index 4ee9a4300214c5abce9f596753e3991225048335..396cd8246ae73a805b22b440f2cf61f5521f3d95 100644 (file)
@@ -4,7 +4,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "context.hh"
@@ -14,6 +14,7 @@
 #include "spanner.hh"
 #include "warn.hh"
 #include "paper-column.hh"
+#include "simple-closure.hh"
 
 SCM
 lookup_nested_property (SCM alist,
@@ -136,7 +137,10 @@ execute_general_pushpop_property (Context *context,
       bool ok = true;
       if (!scm_is_pair (scm_cdr (grob_property_path)))
        {
-         ok = type_check_assignment (symbol, new_value, ly_symbol2scm ("backend-type?"));
+         if (!ly_is_procedure (new_value)
+             && !is_simple_closure (new_value))
+           ok = type_check_assignment (symbol, new_value,
+                                       ly_symbol2scm ("backend-type?"));
 
          /*
            tack onto alist.  We can use set_car, since