fix #49176: page format for my first score

This commit is contained in:
Marc Sabatella 2015-03-07 19:26:44 -07:00
parent 5e7feba6dc
commit ea464991b2

View file

@ -2026,8 +2026,10 @@ static void loadScores(const QStringList& argv)
case SessionStart::SCORE:
{
Score* score = mscore->readScore(preferences.startScore);
if (preferences.startScore.startsWith(":/") && score)
if (preferences.startScore.startsWith(":/") && score) {
score->setPageFormat(*MScore::defaultStyle()->pageFormat());
score->setCreated(true);
}
if (score == 0) {
score = mscore->readScore(":/data/My_First_Score.mscz");
score->setCreated(true);