Try catch to keep the people happy #6176

This commit is contained in:
Thomas Krijnen
2025-02-23 15:50:31 +01:00
parent c30b5cbc08
commit 9289e1d0cc
+6 -2
View File
@@ -58,8 +58,12 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSweptDiskSolid* inst) {
auto ep = inst->EndParam(); auto ep = inst->EndParam();
#else #else
boost::optional<double> sp, ep; boost::optional<double> sp, ep;
sp = inst->StartParam(); try {
ep = inst->EndParam(); sp = inst->StartParam();
ep = inst->EndParam();
} catch (const IfcParse::IfcException& e) {
Logger::Warning(e);
}
#endif #endif
const double tol = settings_.get<settings::Precision>().get(); const double tol = settings_.get<settings::Precision>().get();