]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed crash when creating arc coinciding with already created arc.
authordbv <dbv@opencascade.com>
Thu, 6 Apr 2017 14:23:45 +0000 (17:23 +0300)
committerdbv <dbv@opencascade.com>
Thu, 6 Apr 2017 14:23:45 +0000 (17:23 +0300)
src/SketchPlugin/SketchPlugin_MacroArc.cpp

index 54c2f64b7ac2d928a5c48d28dcdc1a542eb71bab..5bbb322358f90792c725358c6a973603614ec281 100644 (file)
@@ -113,7 +113,9 @@ static void intersectShapeAndCircle(const GeomShapePtr& theShape,
       }
     }
   }
-  theIntersection->setValue(anInterPnt);
+  if(anInterPnt.get()) {
+    theIntersection->setValue(anInterPnt);
+  }
 }