Skip to content

Commit

Permalink
fix #24492: Segmentation fault on drag/drop volta on last measure end
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jul 23, 2014
1 parent 62335e1 commit ade25ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/dragdrop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ bool ScoreView::dragMeasureAnchorElement(const QPointF& pos)
QRectF b(m->canvasBoundingRect());

QPointF anchor;
if (pos.x() < (b.x() + b.width() * .5))
if (pos.x() < (b.x() + b.width() * .5) || m == _score->lastMeasureMM())
anchor = m->canvasBoundingRect().topLeft();
else
anchor = m->canvasBoundingRect().topRight();
Expand Down

0 comments on commit ade25ad

Please sign in to comment.