From d9805185eeba151b256df54c3dcc3f71fd3416f2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 15 Jan 2020 11:50:44 +0100 Subject: [PATCH] Fix boolean op style selection --- src/ifcgeom/IfcGeomFunctions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 504d303fa3..dac5b3b00a 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -3237,10 +3237,10 @@ const IfcSchema::IfcRepresentationItem* IfcGeom::Kernel::find_item_carrying_styl return item; } - while (item->declaration().is(IfcSchema::IfcBooleanClippingResult::Class())) { + while (item->declaration().is(IfcSchema::IfcBooleanResult::Class())) { // All instantiations of IfcBooleanOperand (type of FirstOperand) are subtypes of // IfcGeometricRepresentationItem - item = (IfcSchema::IfcGeometricRepresentationItem*) ((IfcSchema::IfcBooleanClippingResult*) item)->FirstOperand(); + item = (IfcSchema::IfcGeometricRepresentationItem*) ((IfcSchema::IfcBooleanResult*) item)->FirstOperand(); if (item->StyledByItem()->size()) { return item; }