From c84ce1505495dccb8975640eda05f292282c54d5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 26 Apr 2015 22:10:40 +0200 Subject: [PATCH] + preserve current index when setting enumeration --- src/App/PropertyStandard.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index bd056489c..8d205986f 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -281,7 +281,12 @@ PropertyEnumeration::~PropertyEnumeration() void PropertyEnumeration::setEnums(const char **plEnums) { + // Setting the enum is done only once inside the constructor + // but before the current index is already set. So, this needs + // to be preserved. + int index = _enum._index; _enum.setEnums(plEnums); + _enum._index = index; } void PropertyEnumeration::setValue(const char *value)