mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 03:37:21 +00:00
Fix #228
This commit is contained in:
@@ -1179,7 +1179,7 @@ bool IfcFile::Init(IfcParse::IfcSpfStream* s) {
|
|||||||
entity_type = IfcSchema::Type::FromString(TokenFunc::asStringRef(token_stream[2]));
|
entity_type = IfcSchema::Type::FromString(TokenFunc::asStringRef(token_stream[2]));
|
||||||
} catch (const IfcException& ex) {
|
} catch (const IfcException& ex) {
|
||||||
Logger::Message(Logger::LOG_ERROR, ex.what());
|
Logger::Message(Logger::LOG_ERROR, ex.what());
|
||||||
continue;
|
goto advance;
|
||||||
}
|
}
|
||||||
|
|
||||||
data = new IfcEntityInstanceData(entity_type, this, current_id, token_stream[2].startPos);
|
data = new IfcEntityInstanceData(entity_type, this, current_id, token_stream[2].startPos);
|
||||||
@@ -1235,6 +1235,7 @@ bool IfcFile::Init(IfcParse::IfcSpfStream* s) {
|
|||||||
register_inverse(current_id, token_stream[0]);
|
register_inverse(current_id, token_stream[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
advance:
|
||||||
Token next_token;
|
Token next_token;
|
||||||
try {
|
try {
|
||||||
next_token = tokens->Next();
|
next_token = tokens->Next();
|
||||||
|
|||||||
Reference in New Issue
Block a user