mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
IfcConvert segfaults #12
This commit is contained in:
@@ -692,8 +692,7 @@ void IfcGeomObjects::InitUnits() {
|
|||||||
unit = (IfcSchema::IfcSIUnit*) u3;
|
unit = (IfcSchema::IfcSIUnit*) u3;
|
||||||
}
|
}
|
||||||
IfcSchema::IfcValue v = u2->ValueComponent();
|
IfcSchema::IfcValue v = u2->ValueComponent();
|
||||||
IfcUtil::IfcArgumentSelect* v2 = (IfcUtil::IfcArgumentSelect*) v;
|
const double f = *((IfcUtil::IfcBaseEntity*)v)->entity->getArgument(0);
|
||||||
const double f = *v2->wrappedValue();
|
|
||||||
value *= f;
|
value *= f;
|
||||||
} else if ( base->is(IfcSchema::Type::IfcSIUnit) ) {
|
} else if ( base->is(IfcSchema::Type::IfcSIUnit) ) {
|
||||||
unit = reinterpret_pointer_cast<IfcUtil::IfcAbstractSelect,IfcSchema::IfcSIUnit>(base);
|
unit = reinterpret_pointer_cast<IfcUtil::IfcAbstractSelect,IfcSchema::IfcSIUnit>(base);
|
||||||
|
|||||||
Reference in New Issue
Block a user