From f1e3d9c5735631e07433021f361df983e0fcffc7 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 10 Jun 2022 11:07:40 +0200 Subject: [PATCH] typename typename typename typename typename typename --- src/ifcwrap/IfcGeomWrapper.i | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index 5993baedcf..a04b14e470 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -485,11 +485,11 @@ struct ShapeRTTI : public boost::static_visitor // Read precision for found representation's context auto context = ifc_representation->ContextOfItems(); - if (context->as()) { - context = context->as()->ParentContext(); + if (context->as()) { + context = context->as()->ParentContext(); } - if (context->as() && context->as()->Precision()) { - double p = *context->as()->Precision() + if (context->as() && context->as()->Precision()) { + double p = *context->as()->Precision() * kernel.getValue(IfcGeom::Kernel::GV_PRECISION_FACTOR); p *= kernel.getValue(IfcGeom::Kernel::GV_LENGTH_UNIT); if (p < 1.e-7) {