From f8f2108aef50be634fa71e79f372b59ed1345a90 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Tue, 7 Jan 2025 19:54:14 -0500 Subject: [PATCH] Fix bug with alignment tool resetting atoms but not redrawing Fix #1665 Signed-off-by: Geoff Hutchison --- avogadro/qtplugins/aligntool/aligntool.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/avogadro/qtplugins/aligntool/aligntool.cpp b/avogadro/qtplugins/aligntool/aligntool.cpp index b90fc3a9b5..c922ce3558 100644 --- a/avogadro/qtplugins/aligntool/aligntool.cpp +++ b/avogadro/qtplugins/aligntool/aligntool.cpp @@ -140,8 +140,6 @@ void AlignTool::align() shiftAtomToOrigin(m_atoms[0].index); if (m_atoms.size() == 2) alignAtomToAxis(m_atoms[1].index, m_axis); - - m_atoms.clear(); } void AlignTool::shiftAtomToOrigin(Index atomIndex)