Update IfcParse.cpp #4998

This commit is contained in:
Thomas Krijnen
2024-07-17 09:45:34 +02:00
committed by GitHub
parent eeb200a19d
commit 4ad426a5c5
+3 -2
View File
@@ -1147,10 +1147,11 @@ std::string IfcEntityInstanceData::toString(bool upper) const {
ss << ",";
}
if (attributes_[i] == 0) {
if (type_->as_entity()->derived()[i])
if (type_->as_entity() != nullptr && type_->as_entity()->derived()[i]) {
ss << "*";
else
} else {
ss << "$";
}
} else {
ss << attributes_[i]->toString(upper);
}