Skip to content

Commit

Permalink
ENG-11: Articulations initially drawn incorrectly
Browse files Browse the repository at this point in the history
Specifically when dragging-and-dropping an XML file into MuseScore, the
articulations didn't layout correctly. This was due to a difference
between openScore (called when opening from recent or files) and
dropEvent (called when dropping).

This commit removes the partially-duplicated code in dropEvent and
rather calls openScore to handle loading, preventing discrepancies
between the two approaches.
  • Loading branch information
iveshenry18 authored and vpereverzev committed Jun 15, 2021
1 parent 6a6a418 commit c32913c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2920,21 +2920,12 @@ void MuseScore::dropEvent(QDropEvent* event)
{
const QMimeData* dta = event->mimeData();
if (dta->hasUrls()) {
int view = -1;
foreach(const QUrl& u, event->mimeData()->urls()) {
if (u.scheme() == "file") {
QString file = u.toLocalFile();
MasterScore* score = readScore(file);
if (score) {
view = appendScore(score);
addRecentScore(score);
}
openScore(file);
}
}
if (view != -1) {
setCurrentScoreView(view);
writeSessionFile(false);
}
event->acceptProposedAction();
}
}
Expand Down

0 comments on commit c32913c

Please sign in to comment.