further optional type changes

This commit is contained in:
Thomas Krijnen
2021-08-07 11:53:45 +02:00
parent 0e6962c311
commit 872306fdd0
+2 -2
View File
@@ -1003,8 +1003,8 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcIndexedPolyCurve* l, TopoDS_Wi
BRepBuilderAPI_MakeWire w;
if(l->hasSegments()) {
aggregate_of_instance::ptr segments = l->Segments();
if(l->Segments()) {
aggregate_of_instance::ptr segments = *l->Segments();
for (aggregate_of_instance::it it = segments->begin(); it != segments->end(); ++it) {
IfcUtil::IfcBaseClass* segment = *it;
if (segment->declaration().is(IfcSchema::IfcLineIndex::Class())) {