Skip to content

Commit

Permalink
fix #23883: create segments for chord symbols
Browse files Browse the repository at this point in the history
When adding a chord symbol to a staff in a score with a linked part,
create a new segment for the chord symbol in the linked part if
necessary.
  • Loading branch information
MarcSabatella committed Dec 12, 2013
1 parent 173e640 commit 1da2114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/undo.cpp
Expand Up @@ -941,7 +941,7 @@ void Score::undoAddElement(Element* element)
if (staff->rstaff() != ostaff->rstaff()) {
switch (element->type()) {
// exclude certain element types except on corresponding staff in part
// these should be same list excluded in cloneStaff()
// this should be same list excluded in cloneStaff()
case Element::STAFF_TEXT:
case Element::HARMONY:
continue;
Expand Down Expand Up @@ -1020,7 +1020,7 @@ void Score::undoAddElement(Element* element)
Segment* segment = static_cast<Segment*>(element->parent());
int tick = segment->tick();
Measure* m = score->tick2measure(tick);
Segment* seg = m->findSegment(Segment::SegChordRest, tick);
Segment* seg = m->undoGetSegment(Segment::SegChordRest, tick);
int ntrack = staffIdx * VOICES + element->voice();
ne->setTrack(ntrack);
ne->setParent(seg);
Expand Down

0 comments on commit 1da2114

Please sign in to comment.