From: rnv Date: Fri, 3 Oct 2008 06:56:33 +0000 (+0000) Subject: Fix fo IPAL20415 (Error on mouse picking with Shift in 3D viewer if any dialog box... X-Git-Tag: RELIQUAT_4x_25102008~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5555c0e6eca79208c31fdcc2d491ac82cf0c91c2;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 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 = "<