X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FOBJECT%2FSMESH_DeviceActor.cxx;h=5de5e8db7691e115ccb8fecc453df144e6d6fdb9;hb=4e97eee73379d8ce8d55904fc713542001cd4715;hp=c885fb9321fc904a41a4ae8608f9d7df7c0b2902;hpb=11c8820aa0c0f7259f5fc051ca21abad13ac5374;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_DeviceActor.cxx b/src/OBJECT/SMESH_DeviceActor.cxx index c885fb932..5de5e8db7 100644 --- a/src/OBJECT/SMESH_DeviceActor.cxx +++ b/src/OBJECT/SMESH_DeviceActor.cxx @@ -655,7 +655,7 @@ SMESH_DeviceActor { vtkDataSet* aDataSet = myMergeFilter->GetOutput(); vtkIdType anID = myVisualObj->GetNodeVTKId(theObjID); - vtkFloatingPointType* aCoord = aDataSet->GetPoint(anID); + vtkFloatingPointType* aCoord = (anID >= 0) ? aDataSet->GetPoint(anID) : NULL; if(MYDEBUG) MESSAGE("GetNodeCoord - theObjID = "<