diff -Nru avogadrolibs-1.95.1/debian/changelog avogadrolibs-1.95.1/debian/changelog --- avogadrolibs-1.95.1/debian/changelog 2022-02-25 07:07:31.000000000 +0000 +++ avogadrolibs-1.95.1/debian/changelog 2022-02-26 13:15:45.000000000 +0000 @@ -1,3 +1,11 @@ +avogadrolibs (1.95.1-8) unstable; urgency=medium + + * Team upload. + * debian/patches/fix_bond_centric_and_manipulator_tool.patch: Add missing + upstream commit c47d00c to patch, thanks to Aritz Erkiaga. + + -- Michael Banck Sat, 26 Feb 2022 14:15:45 +0100 + avogadrolibs (1.95.1-7) unstable; urgency=medium * Team upload. diff -Nru avogadrolibs-1.95.1/debian/patches/fix_bond_centric_and_manipulator_tool.patch avogadrolibs-1.95.1/debian/patches/fix_bond_centric_and_manipulator_tool.patch --- avogadrolibs-1.95.1/debian/patches/fix_bond_centric_and_manipulator_tool.patch 2022-02-25 06:27:07.000000000 +0000 +++ avogadrolibs-1.95.1/debian/patches/fix_bond_centric_and_manipulator_tool.patch 2022-02-26 13:14:41.000000000 +0000 @@ -18,6 +18,16 @@ avogadro/qtplugins/bondcentrictool/bondcentrictool.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) +From c47d00c821ba77ea2b13aaa933cfc922f1980469 Mon Sep 17 00:00:00 2001 +From: Aritz Erkiaga +Date: Sat, 22 Jan 2022 20:32:33 +0100 +Subject: [PATCH] Fix erratic editing behavior + +Signed-off-by: Aritz Erkiaga +--- + avogadro/qtgui/rwmolecule_undo.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + Index: avogadrolibs/avogadro/qtplugins/manipulator/manipulator.cpp =================================================================== --- avogadrolibs.orig/avogadro/qtplugins/manipulator/manipulator.cpp @@ -45,3 +55,16 @@ return nullptr; // If the hit is a left click on a bond, make it the selected bond and map +diff --git a/avogadro/qtgui/rwmolecule_undo.h b/avogadro/qtgui/rwmolecule_undo.h +index de5bdd331..207680667 100644 +--- a/avogadro/qtgui/rwmolecule_undo.h ++++ b/avogadro/qtgui/rwmolecule_undo.h +@@ -89,7 +89,7 @@ class AddAtomCommand : public RWMolecule::UndoCommand + { + assert(m_molecule.atomCount() == m_atomId); + if (m_usingPositions) +- m_molecule.addAtom(m_atomicNumber, Vector3::Zero(), m_atomId); ++ m_molecule.addAtom(m_atomicNumber, Vector3::Zero(), m_atomUid); + else + m_molecule.addAtom(m_atomicNumber, m_atomUid); + m_molecule.layer().addAtom(m_layer, m_atomId);