Skip to content

Commit

Permalink
Call the correct methods when dragging or resizing the foto lasso.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcclinch committed Feb 6, 2021
1 parent 5b33908 commit 82a8ac5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mscore/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,15 +683,21 @@ void ScoreView::mouseMoveEvent(QMouseEvent* me)
break;

case ViewState::DRAG_OBJECT:
case ViewState::FOTO_DRAG_OBJECT:
doDragElement(me);
break;

case ViewState::FOTO_DRAG_OBJECT:
doDragFotoRect(me);
break;

case ViewState::DRAG_EDIT:
case ViewState::FOTO_DRAG_EDIT:
doDragEdit(me);
break;

case ViewState::FOTO_DRAG_EDIT:
doFotoDragEdit(me);
break;

case ViewState::LASSO:
doDragLasso(me);
break;
Expand Down
2 changes: 2 additions & 0 deletions mscore/fotomode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ void ScoreView::doDragFoto(QMouseEvent* ev)

update();
//mscore->showMessage("drag", 2000);
if (mscore->inspector())
mscore->inspector()->update(_foto->score());
}

//---------------------------------------------------------
Expand Down

0 comments on commit 82a8ac5

Please sign in to comment.