/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2002--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 2002--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
SCM
Measure_grouping::print (SCM grob)
{
- Spanner *me = dynamic_cast<Spanner *> (unsmob_grob (grob));
+ Spanner *me = unsmob<Spanner> (grob);
SCM which = me->get_property ("style");
Real height = robust_scm2double (me->get_property ("height"), 1);
/*
TODO: use line interface
*/
- if (which == ly_symbol2scm ("bracket"))
+ if (scm_is_eq (which, ly_symbol2scm ("bracket")))
m = Lookup::bracket (X_AXIS, iv, t, -height, t);
- else if (which == ly_symbol2scm ("triangle"))
+ else if (scm_is_eq (which, ly_symbol2scm ("triangle")))
m = Lookup::triangle (iv, t, height);
m.align_to (Y_AXIS, DOWN);