Skip to content

Commit

Permalink
fix glisses as well
Browse files Browse the repository at this point in the history
Backport of musescore#8953, part 3
  • Loading branch information
asattely authored and Jojo-Schmitz committed Sep 9, 2021
1 parent 108a40d commit be1dc74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1184,14 +1184,14 @@ void SLine::layout()
// start segment
lineSegm->setSpannerSegmentType(SpannerSegmentType::BEGIN);
lineSegm->setPos(p1);
qreal x2 = system->bbox().right();
qreal x2 = system->lastNoteRestSegmentX(true);
lineSegm->setPos2(QPointF(x2 - p1.x(), 0.0));
}
else if (i > 0 && i != sysIdx2) {
// middle segment
lineSegm->setSpannerSegmentType(SpannerSegmentType::MIDDLE);
qreal x1 = system->firstNoteRestSegmentX(true);
qreal x2 = system->bbox().right();
qreal x2 = system->lastNoteRestSegmentX(true);
lineSegm->setPos(QPointF(x1, p1.y()));
lineSegm->setPos2(QPointF(x2 - x1, 0.0));
}
Expand Down

0 comments on commit be1dc74

Please sign in to comment.