diff --git a/src/importexport/musicxml/internal/export/exportmusicxml.cpp b/src/importexport/musicxml/internal/export/exportmusicxml.cpp index e64b3b9b4ce1a..6eb86fe3a0265 100644 --- a/src/importexport/musicxml/internal/export/exportmusicxml.cpp +++ b/src/importexport/musicxml/internal/export/exportmusicxml.cpp @@ -8929,7 +8929,7 @@ static void writeMusicXml(const FretDiagram* item, XmlWriter& xml) for (int j : bStarts) { xml.startElement("frame-note"); xml.tag("string", mxmlString); - xml.tag("fret", j); + xml.tag("fret", j + item->fretOffset()); xml.tag("barre", { { "type", "start" } }); xml.endElement(); } @@ -8937,7 +8937,7 @@ static void writeMusicXml(const FretDiagram* item, XmlWriter& xml) for (int j : bEnds) { xml.startElement("frame-note"); xml.tag("string", mxmlString); - xml.tag("fret", j); + xml.tag("fret", j + item->fretOffset()); xml.tag("barre", { { "type", "stop" } }); xml.endElement(); }