From: vsv Date: Wed, 3 Oct 2018 13:42:41 +0000 (+0300) Subject: Issue #2644: Set not valid state if a feature is not accepted by attribute X-Git-Tag: CEA_2018-2~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=841cf9a52ac09e7adf22c187ffe6faed468e6626;p=modules%2Fshaper.git Issue #2644: Set not valid state if a feature is not accepted by attribute --- diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.cpp b/src/ModuleBase/ModuleBase_WidgetValidated.cpp index 7ecc5a955..308e14770 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.cpp +++ b/src/ModuleBase/ModuleBase_WidgetValidated.cpp @@ -135,6 +135,8 @@ bool ModuleBase_WidgetValidated::isValidInFilters(const ModuleBase_ViewerPrsPtr& Handle(AIS_InteractiveObject) anIO = myWorkshop->selection()->getIO(thePrs); anOwner = new StdSelect_BRepOwner(aTDShape, anIO); } + else + aValid = false; aSelectAttr->setValue(ObjectPtr(), GeomShapePtr(), true); } else {