Skip to content

Commit

Permalink
Fix GH#25891: do not write muted strings
Browse files Browse the repository at this point in the history
Backport of musescore#25912
  • Loading branch information
rettinghaus authored and Jojo-Schmitz committed Dec 25, 2024
1 parent 3a1e3dd commit 2c80a44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmscore/fret.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1291,13 +1291,13 @@ void FretDiagram::writeMusicXML(XmlWriter& xml) const
xml.tag("first-fret", fretOffset() + 1);

for (int i = 0; i < _strings; ++i) {
int mxmlString = _strings - i;
const int mxmlString = _strings - i;

std::vector<int> bStarts;
std::vector<int> bEnds;
for (auto const& j : _barres) {
FretItem::Barre b = j.second;
int fret = j.first;
const int fret = j.first;
int mxmlFret = fret + fretOffset();
if (!b.exists())
continue;
Expand All @@ -1318,7 +1318,7 @@ void FretDiagram::writeMusicXML(XmlWriter& xml) const
// Markers may exists alongside with dots
// Write dots
for (auto const& d : dot(i)) {
if (!d.exists())
if (!d.exists() || d.dtype == FretDotType::CROSS)
continue;
xml.stag("frame-note");
xml.tag("string", mxmlString);
Expand Down

0 comments on commit 2c80a44

Please sign in to comment.