Skip to content

Commit

Permalink
Fix typo with minimum spin value
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Nov 21, 2024
1 parent 7e917e2 commit e2fc0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avogadro/qtplugins/molecularproperties/molecularmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit e2fc0b8

Please sign in to comment.