X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_MacroArc.cpp;h=5bbb322358f90792c725358c6a973603614ec281;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=e963cfe14c33a4cc1a9b2503fda2fdc9e4f6e656;hpb=434479009dcf4b66fcd5e7e93e5fc3fcc9517da2;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_MacroArc.cpp b/src/SketchPlugin/SketchPlugin_MacroArc.cpp index e963cfe14..5bbb32235 100644 --- a/src/SketchPlugin/SketchPlugin_MacroArc.cpp +++ b/src/SketchPlugin/SketchPlugin_MacroArc.cpp @@ -113,7 +113,9 @@ static void intersectShapeAndCircle(const GeomShapePtr& theShape, } } } - theIntersection->setValue(anInterPnt); + if(anInterPnt.get()) { + theIntersection->setValue(anInterPnt); + } } @@ -355,7 +357,7 @@ void SketchPlugin_MacroArc::execute() // message to init reentrant operation static Events_ID anId = SketchPlugin_MacroArcReentrantMessage::eventId(); std::shared_ptr aMessage = std::shared_ptr - (new SketchPlugin_MacroArcReentrantMessage(anId, 0)); + (new SketchPlugin_MacroArcReentrantMessage(anId, this)); std::string anEditArcType = string(EDIT_ARC_TYPE_ID())->value(); aMessage->setTypeOfCreation(!anEditArcType.empty() ? anEditArcType : anArcType);