mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Properly test for the optional IfcGeometricRepresentationContext.ContextType being null in IfcGeomIterator.h
This commit is contained in:
@@ -153,12 +153,14 @@ namespace IfcGeom {
|
|||||||
// by the parent's context inverse attributes.
|
// by the parent's context inverse attributes.
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
std::string context_type_lc = context->ContextType();
|
if (context->hasContextType()) {
|
||||||
for (std::string::iterator c = context_type_lc.begin(); c != context_type_lc.end(); ++c) {
|
std::string context_type_lc = context->ContextType();
|
||||||
*c = tolower(*c);
|
for (std::string::iterator c = context_type_lc.begin(); c != context_type_lc.end(); ++c) {
|
||||||
}
|
*c = tolower(*c);
|
||||||
if (context->hasContextType() && context_types.find(context_type_lc) != context_types.end()) {
|
}
|
||||||
filtered_contexts->push(context);
|
if (context_types.find(context_type_lc) != context_types.end()) {
|
||||||
|
filtered_contexts->push(context);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user