From 7dcfb42f965baf344607975154ad752bd41711ec Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 16 May 2017 15:39:26 +0300 Subject: [PATCH] Correction for regression: create two lines, start Lenght, edit value, enter, Esc. It leads to line with zero size in the viewer. --- src/PartSet/PartSet_OverconstraintListener.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_OverconstraintListener.cpp b/src/PartSet/PartSet_OverconstraintListener.cpp index ac56f90df..a9d887314 100755 --- a/src/PartSet/PartSet_OverconstraintListener.cpp +++ b/src/PartSet/PartSet_OverconstraintListener.cpp @@ -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(); } } -- 2.39.2