From 8303a04b4ff3c855785eb98efbec0e6d35036751 Mon Sep 17 00:00:00 2001 From: Richard Brice <37087370+RickBrice@users.noreply.github.com> Date: Thu, 9 Nov 2023 09:48:05 -0800 Subject: [PATCH] A couple tweaks for IfcCurveSegment --- src/ifcgeom/mapping/IfcCurveSegment.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ifcgeom/mapping/IfcCurveSegment.cpp b/src/ifcgeom/mapping/IfcCurveSegment.cpp index 8b42627faa..9586747f70 100644 --- a/src/ifcgeom/mapping/IfcCurveSegment.cpp +++ b/src/ifcgeom/mapping/IfcCurveSegment.cpp @@ -106,7 +106,7 @@ class segment_geometry_adjuster { // Get the parent of this segment. If it is a IfcGradientCurve or IfcSegmentedRefernceCurve // look for the optional EndPoint attribute auto curves = inst->UsingCurves(); - if (curves && curves->size() { + if (curves && curves->size()) { auto curve = *curves->begin(); const IfcSchema::IfcPlacement* placement = nullptr; if (curve->as()) { @@ -121,7 +121,6 @@ class segment_geometry_adjuster { } } } - } } // To determine the geometry adjustments the curve segment needs to be evaluated