write svg drawing name in data-name

This commit is contained in:
Thomas Krijnen
2020-09-20 15:36:43 +02:00
parent 46c82d07d0
commit 76896fe9d6
+1 -1
View File
@@ -946,7 +946,7 @@ void SvgSerializer::finalize() {
if (it->first.first) {
svg_file << " <g " << nameElement(it->first.first) << ">\n";
} else {
svg_file << " <g id=\"" << it->first.second << "\" class=\"section\">\n";
svg_file << " <g data-name=\"" << it->first.second << "\" class=\"section\">\n";
}
}
svg_file << " <g " << it->second.first << ">\n";