Skip to content

Commit

Permalink
Merge pull request #4494 from ericfont/280666-disable-mouse-drag-for-…
Browse files Browse the repository at this point in the history
…measure-rests

fix #280666 disable mouse drag for measure rests
  • Loading branch information
anatoly-os committed Jan 5, 2019
2 parents 053673c + bedde9f commit 926c0af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libmscore/rest.cpp
Expand Up @@ -148,6 +148,10 @@ void Rest::setOffset(const QPointF& o)

QRectF Rest::drag(EditData& ed)
{
// don't allow drag for Measure Rests, because they can't be easily laid out in correct position while dragging
if (measure() && durationType().type() == TDuration::DurationType::V_MEASURE)
return QRectF();

QPointF s(ed.delta);
QRectF r(abbox());

Expand Down

0 comments on commit 926c0af

Please sign in to comment.