]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4786: fee.fi = 0 was interpreted as as fee = 0 for undefined fee
authorDavid Kastrup <dak@gnu.org>
Sun, 6 Mar 2016 19:45:02 +0000 (20:45 +0100)
committerDavid Kastrup <dak@gnu.org>
Tue, 8 Mar 2016 15:22:12 +0000 (16:22 +0100)
If fee had been defined previously, the behavior became more sensible,
treating fee as an alist with a value of 0 for key fi.  This is now
always the case.

lily/lily-lexer.cc

index b6cbda7f976160ee0b9cd5f0463a446eee9aa686..221d048cc00aa9a0f67f2f963b5932a43475328d 100644 (file)
@@ -285,6 +285,8 @@ Lily_lexer::set_identifier (SCM path, SCM val)
           SCM prev = ly_module_lookup (mod, sym);
           if (scm_is_true (prev))
             val = nested_property_alist (scm_variable_ref (prev), path, val);
+          else
+            val = nested_create_alist (path, val);
         }
       scm_module_define (mod, sym, val);
     }