From 8faa9c7e36cd0d60d2b68c4acc27f571c11022e3 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 10 Dec 2018 15:46:33 +0300 Subject: [PATCH] Issue #2812: Fix for point creation if pre-selection exists --- src/ModuleBase/ModuleBase_WidgetPointInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.2