From 90bdf03f5466bda24962a3d5d498420555f31c67 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 3 Jul 2017 16:38:04 +0200 Subject: [PATCH] Disable exception --- src/ifcparse/IfcParse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 3998fc4403..4b4e432825 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -923,7 +923,8 @@ void IfcParse::IfcFile::unregister_inverse(unsigned id_from, IfcUtil::IfcBaseCla std::vector& ids = byref[inst->entity->id()]; std::vector::iterator it = std::find(ids.begin(), ids.end(), id_from); if (it == ids.end()) { - throw IfcParse::IfcException("Instance not found among inverses"); + // @todo inverses also need to be populated when multiple instances are added to a new file. + // throw IfcParse::IfcException("Instance not found among inverses"); } else { ids.erase(it); }