From bb70a283bf102a6fecd0e24bc004c3f385e2f4b6 Mon Sep 17 00:00:00 2001 From: Surajjalpun2002 Date: Sun, 15 Oct 2023 11:24:59 +0530 Subject: [PATCH] Removed !valid from the condition since it always returns false Signed-off-by: Surajjalpun2002 --- avogadro/core/angleiterator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/avogadro/core/angleiterator.cpp b/avogadro/core/angleiterator.cpp index 4dedc5a433..7ae09f43a9 100644 --- a/avogadro/core/angleiterator.cpp +++ b/avogadro/core/angleiterator.cpp @@ -44,8 +44,7 @@ Angle AngleIterator::operator++() if (valid) { // we have a valid current angle, try to find a new edge for (const auto maybeC : graph.neighbors(b)) { - if (maybeC != a - && (!valid || maybeC > c)) { + if (maybeC != a && maybeC > c) { m_current = make_tuple(a, b, maybeC); return m_current; }