]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/script.cc
patch::: 1.3.136.jcn1
[lilypond.git] / lily / script.cc
index b19724f6b18ef2f367ea9cb4612e0482ff7f0c6c..78fbff9db13ce8678631b6ea453822a993b1b0bf 100644 (file)
@@ -57,12 +57,18 @@ Script::brew_molecule (SCM smob)
 {
   Grob *me= unsmob_grob (smob);
 #if 0
-   Direction dir = DOWN;
+  
    SCM d = me->get_grob_property ("direction");
    if (isdir_b (d))
      dir = to_dir (d);
 #endif
   Direction dir = Side_position_interface::get_direction(me);
+  if (!dir)
+    {
+      programming_error ("Script direction not known, but molecule wanted.");
+      dir= DOWN;
+    }
+  
   return get_molecule (me, dir).smobbed_copy();
 }