slur playback for the whole staff

This commit is contained in:
lasconic 2014-04-05 20:57:43 +02:00
parent 88d6be3666
commit 1132f3d9fe

View file

@ -696,7 +696,7 @@ void Score::createPlayEvents(Chord* chord)
int tick = chord->tick();
Slur* slur = 0;
for (auto sp : _spanner.map()) {
if (sp.second->type() != Element::SLUR || sp.second->track() != chord->track())
if (sp.second->type() != Element::SLUR || sp.second->staffIdx() != chord->staffIdx())
continue;
Slur* s = static_cast<Slur*>(sp.second);
if (tick >= s->tick() && tick < s->tick2()) {