fix mtest
This commit is contained in:
parent
46ee8249e2
commit
7dbe49927e
1 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue