Skip to content

Commit

Permalink
Merge pull request #25065 from rettinghaus/mei/fix_space
Browse files Browse the repository at this point in the history
fix: do not write color attribute on space elements
  • Loading branch information
cbjeukendrup authored Oct 9, 2024
2 parents 31640a9 + 81c739b commit 28755b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/importexport/mei/internal/meiexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1341,8 +1341,10 @@ bool MeiExporter::writeRest(const Rest* rest, const Staff* staff)
if (rest->dots()) {
meiRest.SetDots(rest->dots());
}
Convert::colorToMEI(rest, meiRest);
this->writeBeamTypeAtt(rest, meiRest);
if (rest->visible()) {
Convert::colorToMEI(rest, meiRest);
this->writeBeamTypeAtt(rest, meiRest);
}
this->writeStaffIdentAtt(rest, staff, meiRest);
// this->writeVerses(rest);
const char prefix = (rest->visible()) ? 'r' : 's';
Expand Down

0 comments on commit 28755b7

Please sign in to comment.