From 6f2da2896e92f09bbf7f95d1368520463e71c821 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 2 Apr 2021 21:20:53 +0200 Subject: [PATCH] try catch convert_placement() --- src/ifcgeom/IfcGeom.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ifcgeom/IfcGeom.h b/src/ifcgeom/IfcGeom.h index 32e9701138..b3731ff072 100644 --- a/src/ifcgeom/IfcGeom.h +++ b/src/ifcgeom/IfcGeom.h @@ -507,10 +507,15 @@ public: virtual bool convert_placement(IfcUtil::IfcBaseClass* item, gp_Trsf& trsf) { if (item->as()) { - return convert(item->as(), trsf); - } else { - return false; + try { + return convert(item->as(), trsf); + } catch (std::exception& e) { + Logger::Error(e, item); + } catch (...) { + Logger::Error("Failed processing placement", item); + } } + return false; } };