]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-column.cc
Doc: LM - correct @example for Tweak Command
[lilypond.git] / lily / note-column.cc
index 760e37dc1956c045d51d3250bee9fad5269ee73b..dcca364e172b4887e06250670c25afa6ef12a14b 100644 (file)
@@ -107,7 +107,10 @@ Note_column::dir (Grob *me)
         return (Direction)sign (head_positions_interval (me).center ());
     }
 
-  programming_error ("note column without heads and stem");
+  if (has_interface (me))
+    programming_error ("Note_column without heads and stem");
+  else
+    programming_error ("dir() given grob without Note_column interface");
   return CENTER;
 }
 
@@ -164,7 +167,7 @@ Note_column::first_head (Grob *me)
 Interval
 Note_column::calc_main_extent (Grob *me)
 {
-    Grob *main_head;
+    Grob *main_head = 0;
     if (get_stem (me))
         main_head = first_head (me);
     else