]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fillet correction for the following case: create sketch, create rectangle, apply...
authornds <nds@opencascade.com>
Wed, 4 May 2016 13:52:46 +0000 (16:52 +0300)
committernds <nds@opencascade.com>
Wed, 4 May 2016 13:52:46 +0000 (16:52 +0300)
create new sketch, create rectangle; start fillet operation, move over rectangle of the first sketch; result is crash

src/SketchPlugin/SketchPlugin_Validators.cpp

index 6f66dc5c734d0669c3a82d0c6fc4d0f731481420..a2f1f27ca19f965aae074ae9da65c5f2a9f158a6 100755 (executable)
@@ -534,6 +534,8 @@ bool SketchPlugin_FilletVertexValidator::isValid(const AttributePtr& theAttribut
   for(std::list<std::pair<ObjectPtr, AttributePtr>>::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<GeomAPI_Pnt2d> aSelectedPnt = std::dynamic_pointer_cast<GeomDataAPI_Point2D>(aPointAttribute)->pnt();
 
     // If we alredy have some result then: