Skip to content

Commit

Permalink
fix #297688 - MusicXML: problems with generated MusicXML when Title f…
Browse files Browse the repository at this point in the history
…rame has a Dedication field
  • Loading branch information
lvinken committed Dec 1, 2019
1 parent 89eb7ee commit c028857
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mscore/exportxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,10 +1196,9 @@ void ExportMusicXml::credits(XmlWriter& xml)
const double bm = getTenthsFromInches(_score->styleD(Sid::pageOddBottomMargin));
//qDebug("page h=%g w=%g lm=%g rm=%g tm=%g bm=%g", h, w, lm, rm, tm, bm);

// write the credits
const MeasureBase* measure = _score->measures()->first();
if (measure) {
for (const Element* element : measure->el()) {
// write the credits (found in the header, i.e. everything before the first measure)
for (auto mb = _score->measures()->first(); mb && !mb->isMeasure(); mb = mb->next()) {
for (const Element* element : mb->el()) {
if (element->isText()) {
const Text* text = toText(element);
const double ph = getTenthsFromDots(parentHeight(text));
Expand Down

0 comments on commit c028857

Please sign in to comment.