From: vsv Date: Fri, 26 Jul 2019 15:13:43 +0000 (+0300) Subject: Issue #2956: Clear temporarily defined value of an attribute X-Git-Tag: VEDF2019Lot4~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9105aa127818a29826cd4c2a11d815ae2894838;p=modules%2Fshaper.git Issue #2956: Clear temporarily defined value of an attribute --- diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.cpp b/src/ModuleBase/ModuleBase_WidgetValidated.cpp index 937464e3c..7740f17f5 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.cpp +++ b/src/ModuleBase/ModuleBase_WidgetValidated.cpp @@ -197,6 +197,11 @@ bool ModuleBase_WidgetValidated::isValidInFilters(const ModuleBase_ViewerPrsPtr& anOwner.Nullify(); myPresentedObject = ObjectPtr(); } + if (!aValid) { + // Clear attribute if it still has selection + AttributePtr anAttr = attribute(); + anAttr->reset(); + } return aValid; }