From 23f9d6d0b07c5fb741cb2fe39b1a10a3397ee741 Mon Sep 17 00:00:00 2001 From: spo Date: Mon, 6 Jul 2015 14:38:30 +0300 Subject: [PATCH] Issue #671 - Removing object used in feature creation with optional parameters. --- src/Model/Model_Validator.cpp | 3 +++ 1 file changed, 3 insertions(+) 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( -- 2.39.2