Skip to content

Commit

Permalink
+ preserve current index when setting enumeration
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 26, 2015
1 parent 02f938e commit c84ce15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/App/PropertyStandard.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit c84ce15

Please sign in to comment.