See #4389. Accommodate null pset values when serializing to SVG.

This commit is contained in:
Dion Moult
2024-03-04 17:53:36 +11:00
parent efae8ebdcd
commit aef00a4dfc
+3
View File
@@ -493,6 +493,9 @@ namespace {
for (auto& prop : *props) {
if (prop->declaration().is("IfcPropertySingleValue")) {
std::string name = *((IfcUtil::IfcBaseEntity*) prop)->get("Name");
if (((IfcUtil::IfcBaseEntity*) prop)->get("NominalValue")->isNull()) {
continue;
}
IfcUtil::IfcBaseClass* v = *((IfcUtil::IfcBaseEntity*) prop)->get("NominalValue");
auto value = v->data().getArgument(0);
if (value->type() == IfcUtil::Argument_STRING) {