From 5555c0e6eca79208c31fdcc2d491ac82cf0c91c2 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 3 Oct 2008 06:56:33 +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 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 = "<