Skip to content

Commit

Permalink
Fix GH#17796: Export correct system-distance
Browse files Browse the repository at this point in the history
Backport of musescore#19512
  • Loading branch information
rettinghaus authored and Jojo-Schmitz committed Oct 2, 2023
1 parent 363640d commit bfdbcf3
Show file tree
Hide file tree
Showing 4 changed files with 3,119 additions and 5 deletions.
5 changes: 3 additions & 2 deletions importexport/musicxml/exportxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5994,9 +5994,10 @@ void ExportMusicXml::print(const Measure* const m, const int partNr, const int f

if (mpc.systemStart && !mpc.pageStart) {
// see System::layout2() for the factor 2 * score()->spatium()
const Measure* prevSystem = mpc.prevMeasure->coveringMMRestOrThis();
const double sysDist = getTenthsFromDots(mmR1->pagePos().y()
- mpc.prevMeasure->pagePos().y()
- mpc.prevMeasure->bbox().height()
- prevSystem->pagePos().y()
- prevSystem->bbox().height()
+ 2 * score()->spatium()
);
_xml.tag("system-distance",
Expand Down
Loading

0 comments on commit bfdbcf3

Please sign in to comment.