Skip to content

Commit

Permalink
update endElement for spanner after editing
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Jan 30, 2015
1 parent e255575 commit 0dfcac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2517,6 +2517,7 @@ void Score::checkSpanner(int startTick, int endTick)
if (s->tick2() > lastTick)
s->undoChangeProperty(P_ID::SPANNER_TICKS, lastTick - s->tick());
}
s->computeEndElement();
}
}
for (auto s : sl) // actually remove scheduled spanners
Expand Down
2 changes: 1 addition & 1 deletion libmscore/hairpin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void HairpinSegment::layout()

void HairpinSegment::updateGrips(Grip* defaultGrip, QVector<QRectF>& grip) const
{
*defaultGrip = Grip(2);
*defaultGrip = Grip::END;

QPointF pp(pagePos());
qreal _spatium = spatium();
Expand Down

0 comments on commit 0dfcac4

Please sign in to comment.