From: nds Date: Tue, 16 May 2017 12:39:26 +0000 (+0300) Subject: Correction for regression: create two lines, start Lenght, edit value, enter, Esc... X-Git-Tag: V_2.7.1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7dcfb42f965baf344607975154ad752bd41711ec;p=modules%2Fshaper.git Correction for regression: create two lines, start Lenght, edit value, enter, Esc. It leads to line with zero size in the viewer. --- 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(); } }