]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/break-substitution.cc
The grand \paper -> \layout, \bookpaper -> \paper renaming.
[lilypond.git] / lily / break-substitution.cc
index 371bff33a01446b6984e87620ec59a6271af36bc..7415d4950bc7b19abb49e4b4f87398679d0a3372 100644 (file)
@@ -478,10 +478,17 @@ substitute_mutable_property_alist (SCM alist)
       else
        val = do_break_substitution (val);
 
-      *tail = scm_cons (scm_cons (sym, val), SCM_EOL);
-      tail = SCM_CDRLOC (*tail);
-    }
 
+      if (val != SCM_UNDEFINED)
+       {
+         /*
+           for ly:grob? properties, SCM_UNDEFINED could leak out
+           through ly:grob-property
+          */
+         *tail = scm_cons (scm_cons (sym, val), SCM_EOL);
+         tail = SCM_CDRLOC (*tail);
+       }
+    }
   return l;
 }