mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 11:43:53 +00:00
See #4389. Accommodate null pset values when serializing to SVG.
This commit is contained in:
@@ -493,6 +493,9 @@ namespace {
|
|||||||
for (auto& prop : *props) {
|
for (auto& prop : *props) {
|
||||||
if (prop->declaration().is("IfcPropertySingleValue")) {
|
if (prop->declaration().is("IfcPropertySingleValue")) {
|
||||||
std::string name = *((IfcUtil::IfcBaseEntity*) prop)->get("Name");
|
std::string name = *((IfcUtil::IfcBaseEntity*) prop)->get("Name");
|
||||||
|
if (((IfcUtil::IfcBaseEntity*) prop)->get("NominalValue")->isNull()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
IfcUtil::IfcBaseClass* v = *((IfcUtil::IfcBaseEntity*) prop)->get("NominalValue");
|
IfcUtil::IfcBaseClass* v = *((IfcUtil::IfcBaseEntity*) prop)->get("NominalValue");
|
||||||
auto value = v->data().getArgument(0);
|
auto value = v->data().getArgument(0);
|
||||||
if (value->type() == IfcUtil::Argument_STRING) {
|
if (value->type() == IfcUtil::Argument_STRING) {
|
||||||
|
|||||||
Reference in New Issue
Block a user