/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1997--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
bool
Note_column::has_rests (Grob *me)
{
- return Grob::unsmob (me->get_object ("rest"));
+ return Grob::is_smob (me->get_object ("rest"));
}
bool
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;
}
}
else if (Note_head::has_interface (h))
{
- if (Grob::unsmob (me->get_object ("rest")))
+ if (Grob::is_smob (me->get_object ("rest")))
both = true;
Pointer_group_interface::add_grob (me, ly_symbol2scm ("note-heads"), h);
}
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