diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index d68dfabd43..e00c5da93d 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -731,7 +731,14 @@ struct WireJoiner { std::map edgesToVisit; int count = 0; for(const auto &info : edges) { - if(BRep_Tool::IsClosed(info.edge)){ +#if OCC_VERSION_HEX >= 0x070000 + if(BRep_Tool::IsClosed(info.edge)) +#else + gp_Pnt p1,p2; + getEndPoints(info.edge,p1,p2); + if(p1.SquareDistance(p2)