]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction for regression: create two lines, start Lenght, edit value, enter, Esc...
authornds <nds@opencascade.com>
Tue, 16 May 2017 12:39:26 +0000 (15:39 +0300)
committernds <nds@opencascade.com>
Tue, 16 May 2017 12:39:26 +0000 (15:39 +0300)
src/PartSet/PartSet_OverconstraintListener.cpp

index ac56f90dfbfa45e23eb47bde105a6c3fab9295d6..a9d88731423f6b19dfca95006ba1b5c0ebe46499 100755 (executable)
@@ -171,7 +171,9 @@ void PartSet_OverconstraintListener::processEvent(
                                                            (anOperation);
       if (aFOperation) {
         FeaturePtr aFeature = aFOperation->feature();
-        if (aFeature.get())
+        // data valid is necessary if the feature has been already deleted
+        // (e.g. Esc of Lenght if lenght value is modified)
+        if (aFeature.get() && aFeature->data()->isValid())
           aCurrentFeatureName = aFeature->data()->name();
       }
     }