Fix IfcOpenHouse

This commit is contained in:
Thomas Krijnen
2018-08-13 11:43:28 +02:00
parent d09abbd260
commit 175387bd88
5 changed files with 24 additions and 9 deletions
@@ -12,9 +12,9 @@ namespace IfcGeom {
template <typename Fn, typename T>
IfcUtil::IfcBaseClass* execute_based_on_schema(Fn fn1, Fn fn2, const std::string& schema_name, const TopoDS_Shape& shape, T t) {
const std::string schema_name_lower = boost::to_lower_copy(schema_name);
if (schema_name == "ifc2x3") {
if (schema_name_lower == "ifc2x3") {
return fn1(shape, t);
} else if (schema_name == "ifc4") {
} else if (schema_name_lower == "ifc4") {
return fn2(shape, t);
} else {
throw IfcParse::IfcException("No geometry serialization available for " + schema_name);