Skip to content

Commit

Permalink
Fix Image paste crash
Browse files Browse the repository at this point in the history
Fixing a screw-up of mine from musescore#7699 (a backport of musescore#7698)
  • Loading branch information
Jojo-Schmitz committed Mar 17, 2022
1 parent cc11172 commit 190db0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/paste.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,9 +1166,9 @@ void Score::cmdPaste(const QMimeData* ms, MuseScoreView* view, Fraction scale)
Element* nel = image->clone();
addRefresh(target->abbox()); // layout() ?!
EditData ddata(view);
ddata.view = view;
ddata.view = view;
ddata.dropElement = nel;
if (target->acceptDrop(ddata)) {
ddata.dropElement = nel;
target->drop(ddata);
if (_selection.element())
addRefresh(_selection.element()->abbox());
Expand Down

0 comments on commit 190db0f

Please sign in to comment.