Version.h: Fix comparison of null version in Version class

Co-authored-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
This commit is contained in:
Edgars Cīrulis 2023-01-19 10:39:57 +02:00
parent 7ed993b54e
commit f49ad2ee03
No known key found for this signature in database
GPG Key ID: 307C4E4663F1FCC3

View File

@ -115,7 +115,8 @@ private:
} else if (numValid && other.m_isNull) { } else if (numValid && other.m_isNull) {
return m_numPart != 0; return m_numPart != 0;
} else if (m_isNull || other.m_isNull) { } else if (m_isNull || other.m_isNull) {
return false; if ((m_stringPart == ".") || (other.m_stringPart == ".")) return false;
return true;
} }
if(numValid && other.numValid) if(numValid && other.numValid)
{ {