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;
}
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