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 03dd79c155
commit 3cc2b49ee9

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());