From: spo Date: Mon, 6 Jul 2015 11:38:30 +0000 (+0300) Subject: Issue #671 - Removing object used in feature creation with optional parameters. X-Git-Tag: V_1.3.0~95 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=23f9d6d0b07c5fb741cb2fe39b1a10a3397ee741;p=modules%2Fshaper.git Issue #671 - Removing object used in feature creation with optional parameters. --- diff --git a/src/Model/Model_Validator.cpp b/src/Model/Model_Validator.cpp index 9875f7427..ea64242f0 100644 --- a/src/Model/Model_Validator.cpp +++ b/src/Model/Model_Validator.cpp @@ -196,6 +196,9 @@ bool Model_ValidatorsFactory::validate(const std::shared_ptr& std::map::const_iterator anAttr = aFeatureIter->second.find(*anAttrIter); if (anAttr != aFeatureIter->second.end()) { + // skip not-case attributres, that really may be invalid (issue 671) + if (!const_cast(this)->isCase(theFeature, anAttr->first)) + continue; AttrValidators::const_iterator aValIter = anAttr->second.cbegin(); for (; aValIter != anAttr->second.cend(); aValIter++) { std::map::const_iterator aFound = myIDs.find(