]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
A fix for the bug: it is possible to apply extrusion even if the algorithm is failed...
authornds <natalia.donis@opencascade.com>
Wed, 20 May 2015 12:58:56 +0000 (15:58 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 20 May 2015 12:58:56 +0000 (15:58 +0300)
Scenario: create a sketch, create a part, visualize all default planes, create extrusion, select a sketch, in "to" control select a perpendicular plane. An error message appears but "Apply" is enabled.
This fix disables the "Apply" button.

src/ModuleBase/ModuleBase_Operation.cpp

index 17c2e936a33c0c15c1462bea009721da099a4ca8..9e0de41e0d782f2902f64ec6789fd5fb4ba7384f 100644 (file)
@@ -64,7 +64,7 @@ FeaturePtr ModuleBase_Operation::feature() const
 
 bool ModuleBase_Operation::isValid() const
 {
-  if (!myFeature)
+  if (!myFeature || !myFeature->data().get())
     return true; // rename operation
   if (myFeature->isAction())
     return true;