App: fix crash on copy of Enumeration

This commit is contained in:
Zheng, Lei
2019-12-23 10:52:31 +08:00
committed by Chris Hennes
parent 09c91738cc
commit 796b4c0b2d

View File

@@ -38,6 +38,7 @@ Enumeration::Enumeration()
}
Enumeration::Enumeration(const Enumeration &other)
: _EnumArray(NULL), _ownEnumArray(false), _index(0), _maxVal(-1)
{
if (other._ownEnumArray) {
setEnums(other.getEnumVector());