]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/output-property-engraver.cc
(process_acknowledged_grobs): don't
[lilypond.git] / lily / output-property-engraver.cc
index 5403d9d7c287e6cdf378b82e25f63c2cc60b6abc..c80cc9c051cd6ad23e0d843300a36fef6d972247 100644 (file)
@@ -1,9 +1,9 @@
 /*   
-  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>
   
  */
 
@@ -49,25 +49,20 @@ Output_property_engraver::acknowledge_grob (Grob_info inf)
          /*
            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 ());
        }