Fix boolean op style selection

This commit is contained in:
Thomas Krijnen
2020-01-15 11:50:44 +01:00
parent f58d9243fa
commit d9805185ee
+2 -2
View File
@@ -3237,10 +3237,10 @@ const IfcSchema::IfcRepresentationItem* IfcGeom::Kernel::find_item_carrying_styl
return item; 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 // All instantiations of IfcBooleanOperand (type of FirstOperand) are subtypes of
// IfcGeometricRepresentationItem // IfcGeometricRepresentationItem
item = (IfcSchema::IfcGeometricRepresentationItem*) ((IfcSchema::IfcBooleanClippingResult*) item)->FirstOperand(); item = (IfcSchema::IfcGeometricRepresentationItem*) ((IfcSchema::IfcBooleanResult*) item)->FirstOperand();
if (item->StyledByItem()->size()) { if (item->StyledByItem()->size()) {
return item; return item;
} }