Skip to content

Commit

Permalink
Merge pull request #4420 from MarcSabatella/noteline
Browse files Browse the repository at this point in the history
Noteline
  • Loading branch information
anatoly-os committed Dec 17, 2018
2 parents a8a8ee0 + 772d299 commit 64e1265
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ void Score::cmdAddSpanner(Spanner* spanner, int staffIdx, Segment* startSegment,
int track = staffIdx * VOICES;
spanner->setTrack(track);
spanner->setTrack2(track);
for (auto ss : spanner->spannerSegments())
ss->setTrack(track);
spanner->setTick(startSegment->tick());
int tick2;
if (!endSegment)
Expand Down
3 changes: 3 additions & 0 deletions libmscore/spanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,9 @@ void SpannerSegment::autoplaceSpannerSegment(qreal minDistance)
if (isStyled(Pid::OFFSET))
setOffset(spanner()->propertyDefault(Pid::OFFSET).toPointF());

if (spanner()->anchor() == Spanner::Anchor::NOTE)
return;

if (visible() && autoplace()) {
SkylineLine sl(!spanner()->placeAbove());
sl.add(shape().translated(pos()));
Expand Down

0 comments on commit 64e1265

Please sign in to comment.