Skip to content

Commit

Permalink
replaced openScore with readScore
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPudashkin authored and vpereverzev committed Feb 3, 2021
1 parent 82aedd8 commit a96161e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8388,7 +8388,7 @@ QByteArray MuseScore::exportMsczAsJSON(Score* score)

bool MuseScore::exportPartsPdfsToJSON(const QString& inFilePath, const QString& outFilePath)
{
Score* score = mscore->openScore(inFilePath);
MasterScore* score = mscore->readScore(inFilePath);
if (!score)
return false;

Expand All @@ -8411,7 +8411,7 @@ bool MuseScore::exportPartsPdfsToJSON(const QString& inFilePath, const QString&
//save extended score+parts and separate parts pdfs
//if no parts, generate parts from existing instruments
if (score->excerpts().size() == 0) {
auto excerpts = Excerpt::createAllExcerpt(score->masterScore());
auto excerpts = Excerpt::createAllExcerpt(score);
for (Excerpt* e : excerpts) {
Score* nscore = new Score(e->oscore());
e->setPartScore(nscore);
Expand Down

0 comments on commit a96161e

Please sign in to comment.