From: nds Date: Wed, 4 May 2016 13:52:46 +0000 (+0300) Subject: Fillet correction for the following case: create sketch, create rectangle, apply... X-Git-Tag: V_2.3.0~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=687e742a02e9155bb210db40eef61f27da4995db;p=modules%2Fshaper.git Fillet correction for the following case: create sketch, create rectangle, apply sketch; create new sketch, create rectangle; start fillet operation, move over rectangle of the first sketch; result is crash --- diff --git a/src/SketchPlugin/SketchPlugin_Validators.cpp b/src/SketchPlugin/SketchPlugin_Validators.cpp index 6f66dc5c7..a2f1f27ca 100755 --- a/src/SketchPlugin/SketchPlugin_Validators.cpp +++ b/src/SketchPlugin/SketchPlugin_Validators.cpp @@ -534,6 +534,8 @@ bool SketchPlugin_FilletVertexValidator::isValid(const AttributePtr& theAttribut for(std::list>::const_iterator aPointsIt = aPointsList.cbegin(); aPointsIt != aPointsList.cend(); aPointsIt++) { ObjectPtr anObject = (*aPointsIt).first; AttributePtr aPointAttribute = (*aPointsIt).second; + if (!aPointAttribute.get()) + return false; std::shared_ptr aSelectedPnt = std::dynamic_pointer_cast(aPointAttribute)->pnt(); // If we alredy have some result then: