fix mtest

This commit is contained in:
lasconic 2014-05-10 17:36:32 +02:00
parent 46ee8249e2
commit 7dbe49927e

View file

@ -243,10 +243,7 @@ Chord::Chord(const Chord& c)
ChordLine* cl = static_cast<ChordLine*>(e);
add(new ChordLine(*cl));
}
else if (e->type() == Element::SLUR) {
Slur* sl = static_cast<Slur*>(e);
add(new Slur(*sl));
}
// TODO deal with slurs
}
}
@ -264,8 +261,10 @@ Chord* Chord::linkedClone()
n = _graceNotes.size();
for (int i = 0; i < n; ++i)
_graceNotes[i]->linkTo(chord->_graceNotes[i]);
for (int i = 0; i < _el.size(); ++i) {
_el[i]->linkTo(chord->el()[i]);
for (int i = 0; i < _el.size(); ++i) { // TODO deal with slurs
if (_el[i]->type() == Element::CHORDLINE) {
_el[i]->linkTo(chord->el()[i]);
}
}
return chord;