]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2956: Clear temporarily defined value of an attribute
authorvsv <vsv@opencascade.com>
Fri, 26 Jul 2019 15:13:43 +0000 (18:13 +0300)
committervsv <vsv@opencascade.com>
Fri, 26 Jul 2019 15:13:43 +0000 (18:13 +0300)
src/ModuleBase/ModuleBase_WidgetValidated.cpp

index 937464e3cf026cf0e2adc9151a95797bdca1378f..7740f17f5625341aa5e72150a47fac7d6582d8af 100644 (file)
@@ -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;
 }