From 687e742a02e9155bb210db40eef61f27da4995db Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 4 May 2016 16:52:46 +0300 Subject: [PATCH] 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 --- src/SketchPlugin/SketchPlugin_Validators.cpp | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.39.2