Skip to content

Commit

Permalink
fix #297893 - [MusicXML import] subtitle placed incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
lvinken committed Dec 1, 2019
1 parent c028857 commit cece903
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mscore/importmxmlpass1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,14 @@ static void doCredits(Score* score, const CreditWordsList& credits, const int pa
// found composer
addText2(vbox, score, w->words,
Tid::COMPOSER, Align::RIGHT | Align::BOTTOM,
(miny - w->defaultY) * score->spatium() / (10 * DPI));
(miny - w->defaultY) * score->spatium() / 10);
}
// poet is in the left column
else if (defx < pw1) {
// found poet/lyricist
addText2(vbox, score, w->words,
Tid::POET, Align::LEFT | Align::BOTTOM,
(miny - w->defaultY) * score->spatium() / (10 * DPI));
(miny - w->defaultY) * score->spatium() / 10);
}
// save others (in the middle column) to be handled later
else {
Expand Down Expand Up @@ -680,7 +680,7 @@ static void doCredits(Score* score, const CreditWordsList& credits, const int pa
//qDebug("title='%s'", qPrintable(w->words));
addText2(vbox, score, w->words,
Tid::TITLE, Align::HCENTER | Align::TOP,
(maxy - w->defaultY) * score->spatium() / (10 * DPI));
(maxy - w->defaultY) * score->spatium() / 10);
}

// add remaining credit-words as subtitles
Expand All @@ -689,7 +689,7 @@ static void doCredits(Score* score, const CreditWordsList& credits, const int pa
//qDebug("subtitle='%s'", qPrintable(w->words));
addText2(vbox, score, w->words,
Tid::SUBTITLE, Align::HCENTER | Align::TOP,
(maxy - w->defaultY) * score->spatium() / (10 * DPI));
(maxy - w->defaultY) * score->spatium() / 10);
}

// use metadata if no workable credit-words found
Expand Down

0 comments on commit cece903

Please sign in to comment.