Skip to content

Commit

Permalink
fix: remove obsolete mei attributes in svg
Browse files Browse the repository at this point in the history
- `precedes` and `follows` will be output using `--svg-additional-attribute` option as `data-precedes` and `data-follows`

closes: rism-digital#3958
  • Loading branch information
yinanazhou committed Feb 18, 2025
1 parent 904518e commit ac77e34
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/svgdevicecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,17 +333,6 @@ void SvgDeviceContext::StartGraphic(
}
}

if (object->HasAttClass(ATT_LINKING)) {
AttLinking *att = dynamic_cast<AttLinking *>(object);
assert(att);
if (att->HasFollows()) {
m_currentNode.append_attribute("mei:follows") = att->GetFollows().c_str();
}
if (att->HasPrecedes()) {
m_currentNode.append_attribute("mei:precedes") = att->GetPrecedes().c_str();
}
}

// m_currentNode.append_attribute("style") = StringFormat("stroke: #%s; stroke-opacity: %f; fill: #%s; fill-opacity:
// %f;",
// this->GetColor(currentPen.GetColor()).c_str(), currentPen.GetOpacity(),
Expand Down

0 comments on commit ac77e34

Please sign in to comment.