diff --git a/src/ifcgeom/mapping/IfcEdge.cpp b/src/ifcgeom/mapping/IfcEdge.cpp index 3bf7dc3e95..38adbf6076 100644 --- a/src/ifcgeom/mapping/IfcEdge.cpp +++ b/src/ifcgeom/mapping/IfcEdge.cpp @@ -23,7 +23,7 @@ using namespace ifcopenshell::geometry; taxonomy::ptr mapping::map_impl(const IfcSchema::IfcEdge& inst) { auto v1 = inst.EdgeStart().as(); - auto v2 = inst.EdgeStart().as(); + auto v2 = inst.EdgeEnd().as(); if (!v1 || !v2) { logger::message(logger::LOG_ERROR, "Only IfcVertexPoints are supported for EdgeStart and -End", inst); return nullptr;