mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
#4070 don't increment aggregate length on invalid members
This commit is contained in:
@@ -740,6 +740,8 @@ size_t IfcParse::IfcFile::load(unsigned entity_instance_name, const IfcParse::en
|
|||||||
filler.push_back(ea);
|
filler.push_back(ea);
|
||||||
} catch (IfcException& e) {
|
} catch (IfcException& e) {
|
||||||
Logger::Message(Logger::LOG_ERROR, e.what());
|
Logger::Message(Logger::LOG_ERROR, e.what());
|
||||||
|
// #4070 We didn't actually capture an aggregate entry, undo length increment.
|
||||||
|
return_value--;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
filler.push_back(new TokenArgument(next));
|
filler.push_back(new TokenArgument(next));
|
||||||
|
|||||||
Reference in New Issue
Block a user