]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/span-bar-engraver.cc
Midi: only output PORT if midiChannelMapping == #'voice.
[lilypond.git] / lily / span-bar-engraver.cc
index 179da16f890e097dac88b30e865185b48634f023..5378eab765cdfee0569dbfccf868b7f1f7a8f64d 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1997--2011 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
@@ -51,7 +51,7 @@ void
 Span_bar_engraver::acknowledge_bar_line (Grob_info i)
 {
   int depth = i.origin_contexts (this).size ();
-  if (depth && Bar_line::has_interface (i.grob ()))
+  if (depth && !Span_bar::has_interface (i.grob ()))
     {
       Item *it = dynamic_cast<Item *> (i.grob ());
       bars_.push_back (it);