Skip to content

Commit

Permalink
fix #267041: Problems with clicking off of an item
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcclinch committed Jan 17, 2018
1 parent 5d1b354 commit c0e2b66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libmscore/element.cpp
Expand Up @@ -1813,7 +1813,8 @@ bool Element::edit(EditData& ed)
void Element::startEditDrag(EditData& ed)
{
ElementEditData* eed = ed.getData(this);
eed->pushProperty(P_ID::USER_OFF);
if (eed)
eed->pushProperty(P_ID::USER_OFF);
}

//---------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion mscore/events.cpp
Expand Up @@ -361,7 +361,7 @@ void ScoreView::mousePressEvent(QMouseEvent* ev)
break;

case ViewState::EDIT: {
if (editData.grips) {
if (e == editData.element && editData.grips) {
qreal a = editData.grip[0].width() * 1.0;
for (int i = 0; i < editData.grips; ++i) {
if (editData.grip[i].adjusted(-a, -a, a, a).contains(editData.startMove)) {
Expand Down

0 comments on commit c0e2b66

Please sign in to comment.