]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/output-property-engraver.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / output-property-engraver.cc
index 74ee4494117904040680d2d5ee65100e247dcead..7f59d44430b7b433f17339c2fa2e70684e9848e4 100644 (file)
@@ -31,8 +31,15 @@ Output_property_engraver::try_music (Music* m)
 {
   if (m->is_mus_type ("layout-instruction"))
     {
-      props_.push_back (m);
-      return true;
+      /*
+       UGH. Only swallow the output property event in the context
+       it was intended for. This is inelegant but not inefficient.
+      */
+      if (context ()->is_alias (m->get_property ("context-type")))
+        {
+          props_.push_back (m);
+          return true;
+        }
     }
   return false;
 }