]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/context.cc
Issue 3553/1: get_default_interpreter should create contexts with missing context_id
[lilypond.git] / lily / context.cc
index 8d44ca8f85c67d43c4ee5ab596839e2cd40e37cf..c72e9eeb25e901f250e4708c04c707542fc4ecb1 100644 (file)
@@ -429,6 +429,13 @@ Context::get_default_interpreter (const string &context_id)
       Context *tg = create_context (t, context_id, SCM_EOL);
       return tg->get_default_interpreter (context_id);
     }
+  else if (!context_id.empty () && context_id != id_string ())
+    {
+      if (daddy_context_ && !dynamic_cast<Global_context *> (daddy_context_))
+        return daddy_context_->get_default_interpreter (context_id);
+      warning (_f ("cannot find or create new Bottom = \"%s\"",
+                   context_id.c_str ()));
+    }
   return this;
 }