/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1996--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1996--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
Jan Nieuwenhuizen <janneke@gnu.org>
TODO: This is way too hairy
/* Tremolo stuff. */
Grob *t_flag = Grob::unsmob (me->get_object ("tremolo-flag"));
- if (t_flag && (!Grob::unsmob (me->get_object ("beam")) || !calc_beam))
+ if (t_flag && (!Grob::is_smob (me->get_object ("beam")) || !calc_beam))
{
/* Crude hack: add extra space if tremolo flag is there.
If there is a beam but no stem, slope calculations depend on this
routine to return where the stem end /would/ be.
*/
- if (calc_beam && !beam && !Stencil::unsmob (me->get_property ("stencil")))
+ if (calc_beam && !beam && !Stencil::is_smob (me->get_property ("stencil")))
return Interval ();
Real y1 = robust_scm2double ((calc_beam
Stem::calc_length (SCM smob)
{
Grob *me = Grob::unsmob (smob);
- if (Grob::unsmob (me->get_object ("beam")))
+ if (Grob::is_smob (me->get_object ("beam")))
{
me->programming_error ("ly:stem::calc-length called but will not be used for beamed stem.");
return scm_from_double (0.0);