From: vsv Date: Thu, 15 Oct 2020 12:29:41 +0000 (+0300) Subject: bos #20207: EDF 22171 - Sigsegv with automatic coincidence X-Git-Tag: V9_6_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5fee1619851d90d8125a5705e100a8021d5e78e;p=modules%2Fshaper.git bos #20207: EDF 22171 - Sigsegv with automatic coincidence --- diff --git a/src/PartSet/PartSet_WidgetPoint2d.cpp b/src/PartSet/PartSet_WidgetPoint2d.cpp index fa0c5ede7..8f6f4fcd5 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.cpp +++ b/src/PartSet/PartSet_WidgetPoint2d.cpp @@ -561,7 +561,7 @@ void PartSet_WidgetPoint2D::mouseReleased(ModuleBase_IViewWindow* theWindow, QMo bool aHasPoint = false; if (aFirstValue.get()) { GeomShapePtr aShape = aFirstValue->shape(); - if (aShape->shapeType() == GeomAPI_Shape::VERTEX) { + if (aShape.get() && aShape->shapeType() == GeomAPI_Shape::VERTEX) { const TopoDS_Shape& aTDShape = aShape->impl(); GeomPnt2dPtr aPnt = PartSet_Tools::getPnt2d(aView, aTDShape, mySketch); aX = aPnt->x();