public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/avogadrolibs/, sci-libs/avogadrolibs/files/
Date: Wed,  7 Sep 2022 09:55:10 +0000 (UTC)	[thread overview]
Message-ID: <1662544495.99722c1e15796d7b5b60d59a43b1bc73f0657eea.andrewammerlaan@gentoo> (raw)

commit:     99722c1e15796d7b5b60d59a43b1bc73f0657eea
Author:     Aritz Erkiaga <aerkiaga3 <AT> gmail <DOT> com>
AuthorDate: Sat Sep  3 15:57:03 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Sep  7 09:54:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99722c1e

Backport critical fixes to sci-libs/avogadrolibs

Signed-off-by: Aritz Erkiaga <aerkiaga3 <AT> gmail.com>
Closes: https://bugs.gentoo.org/868132
Closes: https://github.com/gentoo/gentoo/pull/27128
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 ...1.95.1.ebuild => avogadrolibs-1.95.1-r1.ebuild} |  1 +
 .../avogadrolibs-1.95.1-usability_backport.patch   | 81 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/sci-libs/avogadrolibs/avogadrolibs-1.95.1.ebuild b/sci-libs/avogadrolibs/avogadrolibs-1.95.1-r1.ebuild
similarity index 97%
rename from sci-libs/avogadrolibs/avogadrolibs-1.95.1.ebuild
rename to sci-libs/avogadrolibs/avogadrolibs-1.95.1-r1.ebuild
index 2a3a1c7cdb9b..ea0659f222d9 100644
--- a/sci-libs/avogadrolibs/avogadrolibs-1.95.1.ebuild
+++ b/sci-libs/avogadrolibs/avogadrolibs-1.95.1-r1.ebuild
@@ -47,6 +47,7 @@ BDEPEND="
 PATCHES=(
 	"${FILESDIR}/"${PN}-1.91.0_pre20180406-bundled-genxrdpattern.patch
 	"${FILESDIR}/"${PN}-1.95.1-tests.patch
+	"${FILESDIR}/"${PN}-1.95.1-usability_backport.patch
 )
 
 src_unpack() {

diff --git a/sci-libs/avogadrolibs/files/avogadrolibs-1.95.1-usability_backport.patch b/sci-libs/avogadrolibs/files/avogadrolibs-1.95.1-usability_backport.patch
new file mode 100644
index 000000000000..07a32023600e
--- /dev/null
+++ b/sci-libs/avogadrolibs/files/avogadrolibs-1.95.1-usability_backport.patch
@@ -0,0 +1,81 @@
+From 56c67fff7dd7ec84b2f2b5c2e5beaec13981e408 Mon Sep 17 00:00:00 2001
+From: Aritz Erkiaga <aerkiaga3@gmail.com>
+Date: Sat, 3 Sep 2022 16:54:55 +0200
+Subject: [PATCH 1/3] Fix erratic editing behavior
+
+Signed-off-by: Aritz Erkiaga <aerkiaga3@gmail.com>
+---
+ avogadro/qtgui/rwmolecule_undo.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/avogadro/qtgui/rwmolecule_undo.h b/avogadro/qtgui/rwmolecule_undo.h
+index de5bdd33..20768066 100644
+--- a/avogadro/qtgui/rwmolecule_undo.h
++++ b/avogadro/qtgui/rwmolecule_undo.h
+@@ -89,7 +89,7 @@ public:
+   {
+     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);
+-- 
+2.34.1
+
+
+From 5159ea1a9629ad82130670767cc25c5065f9627c Mon Sep 17 00:00:00 2001
+From: Aritz Erkiaga <aerkiaga3@gmail.com>
+Date: Sat, 3 Sep 2022 16:55:26 +0200
+Subject: [PATCH 2/3] Fix Manipulator Tool not working at all
+
+Signed-off-by: Aritz Erkiaga <aerkiaga3@gmail.com>
+---
+ avogadro/qtplugins/manipulator/manipulator.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/avogadro/qtplugins/manipulator/manipulator.cpp b/avogadro/qtplugins/manipulator/manipulator.cpp
+index 19dc51ac..29559dd0 100644
+--- a/avogadro/qtplugins/manipulator/manipulator.cpp
++++ b/avogadro/qtplugins/manipulator/manipulator.cpp
+@@ -129,7 +129,7 @@ QUndoCommand* Manipulator::mouseMoveEvent(QMouseEvent* e)
+   Vector2f windowPos(e->localPos().x(), e->localPos().y());
+ 
+   if (mol->isSelectionEmpty() && m_object.type == Rendering::AtomType &&
+-      m_object.molecule == mol) {
++      m_object.molecule == &m_molecule->molecule()) {
+     // translate single atom position
+     RWAtom atom = m_molecule->atom(m_object.index);
+     Vector3f oldPos(atom.position3d().cast<float>());
+-- 
+2.34.1
+
+
+From f38bfbc88f0722a66ab298ff26073874b5f73634 Mon Sep 17 00:00:00 2001
+From: Aritz Erkiaga <aerkiaga3@gmail.com>
+Date: Sat, 3 Sep 2022 16:55:59 +0200
+Subject: [PATCH 3/3] Fix Bond Centric Tool not working at all
+
+Signed-off-by: Aritz Erkiaga <aerkiaga3@gmail.com>
+---
+ avogadro/qtplugins/bondcentrictool/bondcentrictool.cpp | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/avogadro/qtplugins/bondcentrictool/bondcentrictool.cpp b/avogadro/qtplugins/bondcentrictool/bondcentrictool.cpp
+index 79112899..3a853057 100644
+--- a/avogadro/qtplugins/bondcentrictool/bondcentrictool.cpp
++++ b/avogadro/qtplugins/bondcentrictool/bondcentrictool.cpp
+@@ -342,8 +342,7 @@ QUndoCommand* BondCentricTool::mousePressEvent(QMouseEvent* e)
+   Rendering::Identifier ident = m_renderer->hit(e->pos().x(), e->pos().y());
+ 
+   // If no hits, return. Also ensure that the hit molecule is the one we expect.
+-  const Core::Molecule* mol = &m_molecule->molecule();
+-  if (!ident.isValid() || ident.molecule != mol)
++  if (!ident.isValid() || ident.molecule != &m_molecule->molecule())
+     return nullptr;
+ 
+   // If the hit is a left click on a bond, make it the selected bond and map
+-- 
+2.34.1
+


             reply	other threads:[~2022-09-07  9:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07  9:55 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-25 15:32 [gentoo-commits] repo/gentoo:master commit in: sci-libs/avogadrolibs/, sci-libs/avogadrolibs/files/ Andreas Sturmlechner
2021-01-17 11:52 David Seifert
2018-04-17 13:30 Andreas Sturmlechner
2018-04-10 20:09 Andreas Sturmlechner
2018-04-08  9:55 Andreas Sturmlechner
2015-12-29 10:44 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1662544495.99722c1e15796d7b5b60d59a43b1bc73f0657eea.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox