From e2fc0b8ff1822c820d703cb1c8c2b92447a05efd Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Thu, 21 Nov 2024 18:36:26 -0500 Subject: [PATCH] Fix typo with minimum spin value Signed-off-by: Geoff Hutchison --- avogadro/qtplugins/molecularproperties/molecularmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avogadro/qtplugins/molecularproperties/molecularmodel.cpp b/avogadro/qtplugins/molecularproperties/molecularmodel.cpp index fcff9b5345..ccd2ae7408 100644 --- a/avogadro/qtplugins/molecularproperties/molecularmodel.cpp +++ b/avogadro/qtplugins/molecularproperties/molecularmodel.cpp @@ -381,7 +381,7 @@ bool MolecularModel::setData(const QModelIndex& index, const QVariant& value, return true; } else if (key == " 9totalSpinMultiplicity") { int spin = value.toInt(); - if (spin < 0) + if (spin < 1) return false; m_molecule->setData("totalSpinMultiplicity", value.toInt());