]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2812: Fix for point creation if pre-selection exists
authorvsv <vsv@opencascade.com>
Mon, 10 Dec 2018 12:46:33 +0000 (15:46 +0300)
committervsv <vsv@opencascade.com>
Mon, 10 Dec 2018 12:46:59 +0000 (15:46 +0300)
src/ModuleBase/ModuleBase_WidgetPointInput.cpp

index 9099925f512219b762f8625d89445fcdbbda55c9..11b96c37c5d1005aa46b27ba63066fc747681985 100644 (file)
@@ -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());