From 319c1131ad37a5f1e8964171df2f46bd4d7a9959 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 3 Oct 2008 06:57:48 +0000 Subject: [PATCH] Fix fo IPAL20415 (Error on mouse picking with Shift in 3D viewer if any dialog box is opened) --- src/OBJECT/SMESH_DeviceActor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = "<