From: azv Date: Thu, 10 Feb 2022 20:01:35 +0000 (+0300) Subject: [bos #24514] fix regressions X-Git-Tag: V9_9_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f95980526b9267b69cdc1c09aed2d0cf8f2421ca;p=modules%2Fshaper.git [bos #24514] fix regressions Make it possible again to select the whole feature in group. --- diff --git a/src/CollectionPlugin/CollectionPlugin_Validators.cpp b/src/CollectionPlugin/CollectionPlugin_Validators.cpp index 2a96b71f0..4ef082fa1 100644 --- a/src/CollectionPlugin/CollectionPlugin_Validators.cpp +++ b/src/CollectionPlugin/CollectionPlugin_Validators.cpp @@ -115,7 +115,9 @@ bool CollectionPlugin_GroupSelectionValidator::isValid( for (int anIndex = 0; anIndex < aSelList->size(); ++anIndex) { AttributeSelectionPtr aCurSelection = aSelList->value(anIndex); - ResultPtr aGroupResult = aCurSelection->context(); + FeaturePtr aCurFeature = aCurSelection->contextFeature(); + ResultPtr aGroupResult = aCurFeature.get() ? aCurFeature->lastResult() + : aCurSelection->context(); if (!aGroupResult.get() || aGroupResult->groupName() == ModelAPI_ResultGroup::group()) { theError = "Error: Whole group mustn't be selected."; return false;