From: vsv Date: Mon, 10 Dec 2018 12:46:33 +0000 (+0300) Subject: Issue #2812: Fix for point creation if pre-selection exists X-Git-Tag: End2018~88 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8faa9c7e36cd0d60d2b68c4acc27f571c11022e3;p=modules%2Fshaper.git Issue #2812: Fix for point creation if pre-selection exists --- diff --git a/src/ModuleBase/ModuleBase_WidgetPointInput.cpp b/src/ModuleBase/ModuleBase_WidgetPointInput.cpp index 9099925f5..11b96c37c 100644 --- a/src/ModuleBase/ModuleBase_WidgetPointInput.cpp +++ b/src/ModuleBase/ModuleBase_WidgetPointInput.cpp @@ -224,7 +224,7 @@ bool ModuleBase_WidgetPointInput { if (theValues.size() == 1) { GeomShapePtr aShape = theValues.first()->shape(); - if (aShape->isVertex()) { + if (aShape.get() && aShape->isVertex()) { GeomVertexPtr aVertex(new GeomAPI_Vertex(aShape)); GeomPointPtr aPnt = aVertex->point(); myXSpin->setValue(aPnt->x());