make constraint validation consistent to evaluation

This commit is contained in:
wmayer
2018-10-16 23:21:40 +02:00
parent 20298c45d2
commit 0b12ceec84
2 changed files with 9 additions and 6 deletions

View File

@@ -342,9 +342,8 @@ void PropertyConstraintList::acceptGeometry(const std::vector<Part::Geometry *>
aboutToSetValue();
validGeometryKeys.clear();
validGeometryKeys.reserve(GeoList.size());
for (std::vector< Part::Geometry * >::const_iterator it=GeoList.begin();
it != GeoList.end(); ++it)
validGeometryKeys.push_back((*it)->getTypeId().getKey());
for (const auto& it : GeoList)
validGeometryKeys.push_back((it)->getTypeId().getKey());
invalidGeometry = false;
hasSetValue();
}