From 872306fdd0f0f57627c47463036637f8c3f36a0c Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 7 Aug 2021 11:53:45 +0200 Subject: [PATCH] further optional type changes --- src/ifcgeom/IfcGeomWires.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcGeomWires.cpp b/src/ifcgeom/IfcGeomWires.cpp index d8d7d385d4..b5ccd6d717 100644 --- a/src/ifcgeom/IfcGeomWires.cpp +++ b/src/ifcgeom/IfcGeomWires.cpp @@ -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())) {