diff --git a/src/ifcparse/IfcFile.cpp b/src/ifcparse/IfcFile.cpp index d0b2dd030e..9e26b24442 100644 --- a/src/ifcparse/IfcFile.cpp +++ b/src/ifcparse/IfcFile.cpp @@ -705,6 +705,7 @@ std::optionaldeclaration_by_name(TokenFunc::asStringRef(token_stream_[2])); } catch (const IfcException& ex) { Logger::Message(Logger::LOG_ERROR, std::string(ex.what()) + " at offset " + std::to_string(token_stream_[2].startPos)); + current_id = 0; goto advance; }