Skip to content

Commit

Permalink
Fix ticket #1912 - inconsistent number of canonical/localized orbitals
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjunkie committed May 14, 2019
1 parent 3520df6 commit e4c0bae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Data/CanonicalOrbitals.C
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ bool CanonicalOrbitals::consistent() const

QString CanonicalOrbitals::label(unsigned index, bool alpha) const
{
QString s(QString::number(index+1));
unsigned n(alpha ? m_nAlpha : m_nBeta);
QString s(alpha ? "Alpha " : "Beta ");
s += QString::number(index+1);

if (n == index+2) {
s += " (HOMO-1)";
Expand Down

0 comments on commit e4c0bae

Please sign in to comment.