mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +00:00
#1311 normalize schema name case
This commit is contained in:
@@ -92,7 +92,7 @@ const IfcParse::schema_definition* IfcParse::schema_by_name(const std::string& n
|
|||||||
Ifc4x3_rc1::get_schema();
|
Ifc4x3_rc1::get_schema();
|
||||||
Ifc4x3_rc2::get_schema();
|
Ifc4x3_rc2::get_schema();
|
||||||
|
|
||||||
std::map<std::string, const IfcParse::schema_definition*>::const_iterator it = schemas.find(name);
|
std::map<std::string, const IfcParse::schema_definition*>::const_iterator it = schemas.find(boost::to_upper_copy(name));
|
||||||
if (it == schemas.end()) {
|
if (it == schemas.end()) {
|
||||||
throw IfcParse::IfcException("No schema named " + name);
|
throw IfcParse::IfcException("No schema named " + name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user