From: rnv Date: Fri, 3 Oct 2008 06:57:48 +0000 (+0000) Subject: Fix fo IPAL20415 (Error on mouse picking with Shift in 3D viewer if any dialog box... X-Git-Tag: V5_1_0a3~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=319c1131ad37a5f1e8964171df2f46bd4d7a9959;p=modules%2Fsmesh.git Fix fo IPAL20415 (Error on mouse picking with Shift in 3D viewer if any dialog box is opened) --- diff --git a/src/OBJECT/SMESH_DeviceActor.cxx b/src/OBJECT/SMESH_DeviceActor.cxx index 257fcd9f8..cf7971f91 100644 --- a/src/OBJECT/SMESH_DeviceActor.cxx +++ b/src/OBJECT/SMESH_DeviceActor.cxx @@ -721,7 +721,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 = "<