We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99d83fc commit 31ca1acCopy full SHA for 31ca1ac
1 file changed
src/ifcgeom/IfcGeomObjects.cpp
@@ -692,8 +692,7 @@ void IfcGeomObjects::InitUnits() {
692
unit = (IfcSchema::IfcSIUnit*) u3;
693
}
694
IfcSchema::IfcValue v = u2->ValueComponent();
695
- IfcUtil::IfcArgumentSelect* v2 = (IfcUtil::IfcArgumentSelect*) v;
696
- const double f = *v2->wrappedValue();
+ const double f = *((IfcUtil::IfcBaseEntity*)v)->entity->getArgument(0);
697
value *= f;
698
} else if ( base->is(IfcSchema::Type::IfcSIUnit) ) {
699
unit = reinterpret_pointer_cast<IfcUtil::IfcAbstractSelect,IfcSchema::IfcSIUnit>(base);
0 commit comments