mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 13:13:44 +00:00
svg: prevent garbage data on empty path
This commit is contained in:
@@ -334,6 +334,7 @@ void SvgSerializer::write(path_object& p, const TopoDS_Shape& comp_or_wire, boos
|
|||||||
first_wire = false;
|
first_wire = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!path.empty()) {
|
||||||
path.add("\"");
|
path.add("\"");
|
||||||
|
|
||||||
if (dash_array) {
|
if (dash_array) {
|
||||||
@@ -351,6 +352,7 @@ void SvgSerializer::write(path_object& p, const TopoDS_Shape& comp_or_wire, boos
|
|||||||
|
|
||||||
path.add("/>\n");
|
path.add("/>\n");
|
||||||
p.second.push_back(path);
|
p.second.push_back(path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SvgSerializer::path_object& SvgSerializer::start_path(const gp_Pln& pln, IfcUtil::IfcBaseEntity* storey, const std::string& id) {
|
SvgSerializer::path_object& SvgSerializer::start_path(const gp_Pln& pln, IfcUtil::IfcBaseEntity* storey, const std::string& id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user