mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Pointer issue
This commit is contained in:
@@ -158,7 +158,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcOffsetCurveByDistances& inst
|
||||
|
||||
// at this point, next == end and prev == end-1
|
||||
#if defined SCHEMA_HAS_IfcDistanceExpression
|
||||
double last_distance = (*prev)->DistanceAlong() * length_unit_;
|
||||
double last_distance = prev->DistanceAlong() * length_unit_;
|
||||
#else
|
||||
double last_distance = (double) prev->DistanceAlong().as<IfcSchema::IfcLengthMeasure>() * length_unit_;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user