Commit ff851ecc authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #1678 from peastman/property

Fixed a bug in setting property by deprecated name
parents 9f717609 a6fd8742
...@@ -104,7 +104,7 @@ void Platform::setPropertyDefaultValue(const string& property, const string& val ...@@ -104,7 +104,7 @@ void Platform::setPropertyDefaultValue(const string& property, const string& val
propertyName = deprecatedPropertyReplacements.find(property)->second; propertyName = deprecatedPropertyReplacements.find(property)->second;
for (int i = 0; i < (int) platformProperties.size(); i++) for (int i = 0; i < (int) platformProperties.size(); i++)
if (platformProperties[i] == propertyName) { if (platformProperties[i] == propertyName) {
defaultProperties[property] = value; defaultProperties[propertyName] = value;
return; return;
} }
throw OpenMMException("setPropertyDefaultValue: Illegal property name"); throw OpenMMException("setPropertyDefaultValue: Illegal property name");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment