dont create voltas in parts for track != 0

This commit is contained in:
ws 2015-04-20 12:40:03 +02:00
parent fd1276a85b
commit 815dd63d08

View file

@ -218,6 +218,9 @@ void createExcerpt(Excerpt* excerpt)
static void cloneSpanner(Spanner* s, Score* score, int dstTrack, int dstTrack2)
{
// dont clone voltas for track != 0
if (s->type() == Element::Type::VOLTA && s->track() != 0)
return;
Spanner* ns = static_cast<Spanner*>(s->linkedClone());
ns->setScore(score);
ns->setParent(0);