diff --git a/src/libs/vpatterndb/vpiecepath.cpp b/src/libs/vpatterndb/vpiecepath.cpp index b9a2b6c8e..46fff2fab 100644 --- a/src/libs/vpatterndb/vpiecepath.cpp +++ b/src/libs/vpatterndb/vpiecepath.cpp @@ -791,13 +791,7 @@ int VPiecePath::FindInLoopNotExcludedUp(int start, const QVector &no bool found = false; do { - if (not nodes.at(i).IsExcluded() - && (not nodes.at(start).IsMainPathNode() - || (nodes.at(start).IsMainPathNode() - && nodes.at(start).GetPassmarkAngleType() != PassmarkAngleType::Intersection) - || (nodes.at(start).IsMainPathNode() - && nodes.at(start).GetPassmarkAngleType() == PassmarkAngleType::Intersection - && nodes.at(i).IsMainPathNode()))) + if (not nodes.at(i).IsExcluded()) { found = true; break; @@ -833,13 +827,7 @@ int VPiecePath::FindInLoopNotExcludedDown(int start, const QVector & bool found = false; do { - if (not nodes.at(i).IsExcluded() - && (not nodes.at(start).IsMainPathNode() - || (nodes.at(start).IsMainPathNode() - && nodes.at(start).GetPassmarkAngleType() != PassmarkAngleType::Intersection) - || (nodes.at(start).IsMainPathNode() - && nodes.at(start).GetPassmarkAngleType() == PassmarkAngleType::Intersection - && nodes.at(i).IsMainPathNode()))) + if (not nodes.at(i).IsExcluded()) { found = true; break;