Skip to content

Commit

Permalink
Merge pull request #3308 from rjmatthews62/fix_257631
Browse files Browse the repository at this point in the history
fix #257631 Crash in layout with TieSegments
  • Loading branch information
lasconic committed Nov 23, 2017
2 parents 12143ca + aadb223 commit 217b5fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/tie.cpp
Expand Up @@ -675,7 +675,7 @@ void Tie::layoutFor(System* system)

fixupSegments(n);
TieSegment* segment = segmentAt(0);
segment->setParent(system);
segment->setSystem(system); // Needed to populate System.spannerSegments
segment->layoutSegment(sPos.p1, sPos.p2);
segment->setSpannerSegmentType(sPos.system1 != sPos.system2 ? SpannerSegmentType::BEGIN : SpannerSegmentType::SINGLE);
}
Expand All @@ -692,7 +692,7 @@ void Tie::layoutBack(System* system)

fixupSegments(2);
TieSegment* segment = segmentAt(1);
segment->setParent(system);
segment->setSystem(system);

qreal x;
Segment* seg = endNote()->chord()->segment()->prev();
Expand Down

0 comments on commit 217b5fc

Please sign in to comment.