From ade25ad0f263a5ee31a733b145eed18fa58fcd27 Mon Sep 17 00:00:00 2001 From: lasconic Date: Wed, 23 Jul 2014 10:01:04 +0200 Subject: [PATCH] fix #24492: Segmentation fault on drag/drop volta on last measure end --- mscore/dragdrop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mscore/dragdrop.cpp b/mscore/dragdrop.cpp index 5632366442cd2..6ffeb72553718 100644 --- a/mscore/dragdrop.cpp +++ b/mscore/dragdrop.cpp @@ -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();