/*
- output-property-engraver.cc -- implement Output_property_engraver
+ output-property-engraver.cc -- implement Output_property_engraver
source file of the GNU LilyPond music typesetter
- (c) 2000--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 2000--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
/*
should typecheck pred.
*/
- SCM result = scm_call_1 (pred, inf.grob_->self_scm ());
+ SCM result = scm_call_1 (pred, inf.grob ()->self_scm ());
if (to_boolean (result))
{
SCM sym = o->get_property ("grob-property");
SCM val = o->get_property ("grob-value");
- inf.grob_->internal_set_property (sym, val);
+ inf.grob ()->internal_set_property (sym, val);
}
}
else
{
- Context * d =
- dynamic_cast<Context *> (inf.origin_trans_);
-
- if (!d)
- d = dynamic_cast<Context *> (inf.origin_trans_->context ());
-
+ Context * d = inf.context ();
SCM proc = o->get_property ("procedure");
scm_call_3 (proc,
- inf.grob_->self_scm (),
+ inf.grob ()->self_scm (),
d->self_scm (),
context ()->self_scm ());
}